LoginSignup
5
0

1.69inchの液晶Displayをxiaoで動かしてみる

Last updated at Posted at 2023-12-17

image.png

1.69inchの液晶Displayです。
xiaoとSPIで接続して動かしてみます。

今回はAdafruitのGFXライブラリではなく以下のArduino_GFXライブラリをインストールしました。
※Adafruitのライブラリではうまく動作しませんでした...

HelloWorldのサンプルプログラムのコメントにある通りにxiaoを配線します。

* Seeeduino XIAO dev board    : CS:  3, DC:  2, RST:  1, BL:  0, SCK:  8, MOSI: 10, MISO:  9

プログラム中の以下の箇所を液晶Displayの解像度に合わせます。

Arduino_GFX *gfx = new Arduino_ST7789(
  bus, 7 /* RST */, 0 /* rotation */, true /* IPS */,
  240 /* width */, 280 /* height */,
  0 /* col offset 1 */, 20 /* row offset 1 */,
  0 /* col offset 2 */, 20 /* row offset 2 */);

プログラムを書き込むとちゃんと画面が映りました。

image.png

5
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
5
0