ESP32-S3-Zero display on 0.85 inch 128x128 LCD with GC9107 SPI driver, using Arduino_GFX.
This post show steps to using Waveshare ESP32-S3-Zero to display on Waveshare 0.85 inch 128x128 LCD with GC9107 SPI driver, using GFX Library for Arduino (Arduino_GFX).
Make sure GFX Library for Arduino (Arduino_GFX) is installed in Library
Manager.
Connection:
GC9107 ESP32-S3-Zero
---------------------
VCC 3V3
GND GND
DIN GP11
CLK GP12
CS GP10
DC GP9
RST GP8
BL GP7
Code for Arduino_GFX setting://========== Arduino_GFX setting ===============================================
#define TFT_DIN 11
#define TFT_CLK 12
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8
#define TFT_BL 7
#define GFX_BL TFT_BL
// https://github.com/moononournation/Arduino_GFX/wiki/Data-Bus-Class#spi-1
Arduino_DataBus *bus = new Arduino_ESP32SPI(TFT_DC, TFT_CS, TFT_CLK, TFT_DIN, GFX_NOT_DEFINED /* MISO */, HSPI /* spi_num */);
//https://github.com/moononournation/Arduino_GFX/wiki/Display-Class#gc9107-ips-lcd-128x128
Arduino_GFX *gfx = new Arduino_GC9107(bus, TFT_RST, 0 /* rotation */, true /* IPS */);
//==============================================================================
Related:~ Raspberry Pi Pico W (Arduino Framework) display on 0.85 inch 128x128 LCD with GC9107 SPI driver, using GFX Library for Arduino (Arduino_GFX).
Comments
Post a Comment