
プラットフォーム
ラズパイ 4/5 Model B 、Zero
OSは2種類を使用
Bookworm – Debian 12
Ubuntu 24.04.1 LTS
結線
Bookwoem – Debian 12
ディスプレイ用ライブラリをインストール
1 |
sudo apt install python3-luma.oled |
サンプル表示用プロジェクトをクローン
1 |
git clone https://github.com/kotamorishi/rpi-ssd1306-oled |
i2cdetectコマンドを使って、表示デバイスが接続されているか確認
1 |
i2cdetect -y 1 |
“3c”が、表示デバイスのデバイスアドレス
表示テスト
1 2 3 |
cd rpi-ssd1306-oled python3 draw_text.py |
Ubuntu 24.04.1 LTS
ライブラリ、ツール、フォントをインストール
1 2 3 4 5 |
sudo apt install python3-luma.oled sudo apt install -y i2c-tools sudo apt-get install "fonts-noto-mono" |
サンプル表示用プロジェクトをクローン
1 |
git clone https://github.com/kotamorishi/rpi-ssd1306-oled |
i2cdetectコマンドを使って、表示デバイスが接続されているか確認
1 |
i2cdetect -y 1 |
“3c”が、表示デバイスのデバイスアドレス
表示テスト
1 2 3 |
cd rpi-ssd1306-oled python3 draw_text.py |
Leave a Reply