0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Raspberry Pi Pico 2事始め4~Raspberry Pi Hat 1.3inch OLED HATを使おう1~

Posted at

Raspberry Pi PicoRaspberry PiHat を使えるようにした uHAT Porter Pico を使ってみます。

Raspberry Pi Picoを使用していますが、Raspberry Pi Pico2でも使用可能です。

uHAT Porter Pico

uHAT Porter PicoはRaspberry Pi PicoGPIOピンRaspberry Pi の40ピンコネクタに変換することができます。

1.3inch OLED HAT

Waveshare1.3インチOLEDスイッチ,ジョグダイヤル が搭載されているHatになります。
OLED はデフォルトでは、SPI接続 になっています。

環境構築

スケッチ⇒ライブラリをインクルード⇒ライブラリを管理
image.png
SH1106 と入力し Adafruit_SH110x を選択し、 インストール をクリックします。
image.png
Install all をクリックします。
image.png
ファイル⇒スケッチ例⇒Adafruit_SH110x⇒OLED_QTPY_SH1106⇒SH1106_128x64_SPi_QTPY を開きます。
image.png
26行目 からの ピン設定 を変更します。

#define OLED_MOSI     10
#define OLED_CLK      8
#define OLED_DC       7
#define OLED_CS       5
#define OLED_RST      9

1.3inch OLED HATピン設定

image.png

uHAT Porter Picoピン設定

uHAT Porter Picoピンはバージョンにより異なる為、基板のレビジョンを確認して設定します。
image.png

https://github.com/Akkiesoft/uhat-porter-pico
ピン設定をし、__マイコンボードに書き込む➡ __ を クリック することでOLEDにデモ画面が表示されます。
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?