imageimage

取得的ST7789少了一個CS Pin非Adafruit版本,使用Adafruit的Library無法正常操作。

 

線路連接

image

 

腳位設定

#define TFT_DC    D1
#define TFT_RST   D0 //RES
//#define TFT_CS    10 // only for displays with CS pin
#define TFT_MOSI  D7   // for hardware SPI data pin (all of available pins)
#define TFT_SCLK  D5

Arduino_ST7789 tft = Arduino_ST7789(TFT_DC, TFT_RST); //for display without CS pin

 

Library

Arduino-ST7789-Library

 

Reference

ST7789 SPI TFT 240×240 without CS Pin Interfacing ESP8266

Interfacing ESP8266 NodeMCU with ST7789 TFT Display

 

線路透過Uart通訊傳送圖檔

ST7789 Display Review | Uploading Image  透過拖拉圖片傳送資料到LCD顯示

1. 需修改的程式碼

   lcd.drawPixel(i,j,lcd.Color565(r,g,b));

2. Transmit Packet Size需調整

image

image

arrow
arrow
    全站熱搜

    門外漢 發表在 痞客邦 留言(0) 人氣()