Skip to content

Commit

Permalink
support new version of AmebaD for RTL872X
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed Jan 2, 2022
1 parent b82bf2b commit 4eaa0c3
Show file tree
Hide file tree
Showing 17 changed files with 92 additions and 27 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Below are some figures compare with other 3 Arduino common display libraries.
- FastLED

## Currently Supported Dev Board
- Ameba RTL8722DM Board (AMB 21)
- Ameba RTL8722DM MINI Board (AMB 23)
- Arduino Nano
- Arduino Nano BLE 33
- Arduino Pro Micro
Expand All @@ -89,7 +91,7 @@ Below are some figures compare with other 3 Arduino common display libraries.
- ESP32-C3 Series
- ESP32-S2 Series
- Raspberry Pi Pico
- rtlduino
- rtlduino BW16 (by Ai-Thinker)
- Sony Spresense
- WeAct BlackPill V2.0 (BlackPill F411CE)

Expand Down
5 changes: 4 additions & 1 deletion examples/AsciiTable/AsciiTable.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/Clock/Clock.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/HelloWorld/HelloWorld.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/HelloWorldGfxfont/HelloWorldGfxfont.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/ImgViewer/ImgViewerBmp/ImgViewerBmp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/ImgViewer/ImgViewerJpeg/ImgViewerJpeg.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/ImgViewer/ImgViewerMjpeg/ImgViewerMjpeg.ino
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/ImgViewer/ImgViewerPng/ImgViewerPng.ino
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/LVGL/LvglHelloWorld/LvglHelloWorld.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion examples/LVGL/LvglWidgets/LvglWidgets.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
17 changes: 17 additions & 0 deletions examples/PDQgraphicstest/PDQgraphicstest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,27 @@ Arduino_GFX *gfx = new Arduino_ST7789(bus, -1 /* RST */, 2 /* rotation */, true
#define TFT_RST 2
#define TFT_BL 5
#elif defined(RTL8722DM)
#if defined(BOARD_RTL8720DN_BW16)
#define TFT_CS 9
#define TFT_DC 8
#define TFT_RST 6
#define TFT_BL 3
#elif defined(BOARD_RTL8722DM)
#define TFT_CS 18
#define TFT_DC 17
#define TFT_RST 22
#define TFT_BL 23
#elif defined(BOARD_RTL8722DM_MINI)
#define TFT_CS 12
#define TFT_DC 14
#define TFT_RST 15
#define TFT_BL 13
#else // old version
#define TFT_CS 18 // -1 for display without CS pin
#define TFT_DC 17
#define TFT_RST 2
#define TFT_BL 23
#endif
#elif defined(SEEED_XIAO_M0)
#define TFT_CS 3 // -1 for display without CS pin
#define TFT_DC 2
Expand Down
5 changes: 4 additions & 1 deletion examples/WiFiAnalyzer/ESPWiFiAnalyzer/ESPWiFiAnalyzer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
10 changes: 6 additions & 4 deletions examples/WiFiAnalyzer/RTLWiFiAnalyzer/RTLWiFiAnalyzer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
* Add realtek ameba core support to Arduino IDE:
* https://github.com/ambiot/ambd_arduino
*
* Patch realtek ameba core variant.cpp to RTL8720DN pinout:
* Old patch realtek ameba core variant.cpp to RTL8720DN pinout:
* https://github.com/mikey60/BW16-RTL8720DN-Module-Arduino
*
* default pins for RTL8722: TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* default pins for RTL8722_mini :TFT_CS: 12, TFT_DC: 14,TFT_RST: 15, TFT_BL: 13
* default pins for RTL8720_BW16: TFT_CS: 9, TFT_DC: 6, TFT_RST: 2, TFT_BL: 3
* Defalult pin list for non display dev kit:
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
******************************************************************************/

#define SCAN_INTERVAL 3000
Expand Down
5 changes: 4 additions & 1 deletion examples/WiFiPhotoFrame/WiFiPhotoFrame.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
* ESP32-S2 various dev board : TFT_CS: 34, TFT_DC: 26, TFT_RST: 33, TFT_BL: 21
* ESP8266 various dev board : TFT_CS: 15, TFT_DC: 4, TFT_RST: 2, TFT_BL: 5
* Raspberry Pi Pico dev board : TFT_CS: 17, TFT_DC: 27, TFT_RST: 26, TFT_BL: 28
* RTL872x various dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720 BW16 old patch core : TFT_CS: 18, TFT_DC: 17, TFT_RST: 2, TFT_BL: 23
* RTL8720_BW16 Official core : TFT_CS: 9, TFT_DC: 8, TFT_RST: 6, TFT_BL: 3
* RTL8722 dev board : TFT_CS: 18, TFT_DC: 17, TFT_RST: 22, TFT_BL: 23
* RTL8722_mini dev board : TFT_CS: 12, TFT_DC: 14, TFT_RST: 15, TFT_BL: 13
* Seeeduino XIAO dev board : TFT_CS: 3, TFT_DC: 2, TFT_RST: 1, TFT_BL: 0
* Teensy 4.1 dev board : TFT_CS: 39, TFT_DC: 41, TFT_RST: 40, TFT_BL: 22
******************************************************************************/
Expand Down
23 changes: 14 additions & 9 deletions src/Arduino_GFX_Library.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,26 @@
#define TFT_RST 2
#define TFT_BL 5
#elif defined(RTL8722DM)
#if defined(BOARD_RTL8722DM_MINI)
#define TFT_CS 12
#define TFT_DC 14
#define TFT_RST 15
#define TFT_BL 13
#elif defined(BOARD_RTL8720DN_BW16)
#if defined(BOARD_RTL8720DN_BW16)
#define TFT_CS 9
#define TFT_DC 6
#define TFT_RST 2
#define TFT_DC 8
#define TFT_RST 6
#define TFT_BL 3
#else // defined(BOARD_RTL8722DM)
#elif defined(BOARD_RTL8722DM)
#define TFT_CS 18
#define TFT_DC 17
#define TFT_RST 22
#define TFT_BL 23
#elif defined(BOARD_RTL8722DM_MINI)
#define TFT_CS 12
#define TFT_DC 14
#define TFT_RST 15
#define TFT_BL 13
#else // old version
#define TFT_CS 18 // -1 for display without CS pin
#define TFT_DC 17
#define TFT_RST 2
#define TFT_BL 23
#endif
#elif defined(SEEED_XIAO_M0)
#define TFT_CS 3 // -1 for display without CS pin
Expand Down

0 comments on commit 4eaa0c3

Please sign in to comment.