diff --git a/README.md b/README.md index cf8bab67..d8beef35 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/examples/AsciiTable/AsciiTable.ino b/examples/AsciiTable/AsciiTable.ino index 21c712b7..719a1120 100644 --- a/examples/AsciiTable/AsciiTable.ino +++ b/examples/AsciiTable/AsciiTable.ino @@ -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 ******************************************************************************/ diff --git a/examples/Clock/Clock.ino b/examples/Clock/Clock.ino index 876d1a82..8a702ce4 100644 --- a/examples/Clock/Clock.ino +++ b/examples/Clock/Clock.ino @@ -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 ******************************************************************************/ diff --git a/examples/HelloWorld/HelloWorld.ino b/examples/HelloWorld/HelloWorld.ino index abec2d59..184d9fa8 100644 --- a/examples/HelloWorld/HelloWorld.ino +++ b/examples/HelloWorld/HelloWorld.ino @@ -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 ******************************************************************************/ diff --git a/examples/HelloWorldGfxfont/HelloWorldGfxfont.ino b/examples/HelloWorldGfxfont/HelloWorldGfxfont.ino index 2c2ee44a..ce0ebcc3 100644 --- a/examples/HelloWorldGfxfont/HelloWorldGfxfont.ino +++ b/examples/HelloWorldGfxfont/HelloWorldGfxfont.ino @@ -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 ******************************************************************************/ diff --git a/examples/ImgViewer/ImgViewerAnimatedGIF/ImgViewerAnimatedGIF.ino b/examples/ImgViewer/ImgViewerAnimatedGIF/ImgViewerAnimatedGIF.ino index cdec8507..a2a99ca9 100644 --- a/examples/ImgViewer/ImgViewerAnimatedGIF/ImgViewerAnimatedGIF.ino +++ b/examples/ImgViewer/ImgViewerAnimatedGIF/ImgViewerAnimatedGIF.ino @@ -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 ******************************************************************************/ diff --git a/examples/ImgViewer/ImgViewerBmp/ImgViewerBmp.ino b/examples/ImgViewer/ImgViewerBmp/ImgViewerBmp.ino index 42155949..c99bcc51 100644 --- a/examples/ImgViewer/ImgViewerBmp/ImgViewerBmp.ino +++ b/examples/ImgViewer/ImgViewerBmp/ImgViewerBmp.ino @@ -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 ******************************************************************************/ diff --git a/examples/ImgViewer/ImgViewerJpeg/ImgViewerJpeg.ino b/examples/ImgViewer/ImgViewerJpeg/ImgViewerJpeg.ino index 94504fc9..1058778b 100644 --- a/examples/ImgViewer/ImgViewerJpeg/ImgViewerJpeg.ino +++ b/examples/ImgViewer/ImgViewerJpeg/ImgViewerJpeg.ino @@ -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 ******************************************************************************/ diff --git a/examples/ImgViewer/ImgViewerMjpeg/ImgViewerMjpeg.ino b/examples/ImgViewer/ImgViewerMjpeg/ImgViewerMjpeg.ino index 84d24a69..46102c2f 100644 --- a/examples/ImgViewer/ImgViewerMjpeg/ImgViewerMjpeg.ino +++ b/examples/ImgViewer/ImgViewerMjpeg/ImgViewerMjpeg.ino @@ -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 ******************************************************************************/ diff --git a/examples/ImgViewer/ImgViewerPng/ImgViewerPng.ino b/examples/ImgViewer/ImgViewerPng/ImgViewerPng.ino index 025162db..58178744 100644 --- a/examples/ImgViewer/ImgViewerPng/ImgViewerPng.ino +++ b/examples/ImgViewer/ImgViewerPng/ImgViewerPng.ino @@ -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 ******************************************************************************/ diff --git a/examples/LVGL/LvglHelloWorld/LvglHelloWorld.ino b/examples/LVGL/LvglHelloWorld/LvglHelloWorld.ino index fab5fcd0..52a451f7 100644 --- a/examples/LVGL/LvglHelloWorld/LvglHelloWorld.ino +++ b/examples/LVGL/LvglHelloWorld/LvglHelloWorld.ino @@ -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 ******************************************************************************/ diff --git a/examples/LVGL/LvglWidgets/LvglWidgets.ino b/examples/LVGL/LvglWidgets/LvglWidgets.ino index 98ccdfd0..d22a1589 100644 --- a/examples/LVGL/LvglWidgets/LvglWidgets.ino +++ b/examples/LVGL/LvglWidgets/LvglWidgets.ino @@ -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 ******************************************************************************/ diff --git a/examples/PDQgraphicstest/PDQgraphicstest.ino b/examples/PDQgraphicstest/PDQgraphicstest.ino index 8d166dfa..53ad7ab3 100644 --- a/examples/PDQgraphicstest/PDQgraphicstest.ino +++ b/examples/PDQgraphicstest/PDQgraphicstest.ino @@ -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 diff --git a/examples/WiFiAnalyzer/ESPWiFiAnalyzer/ESPWiFiAnalyzer.ino b/examples/WiFiAnalyzer/ESPWiFiAnalyzer/ESPWiFiAnalyzer.ino index 21b13481..8ecc3549 100644 --- a/examples/WiFiAnalyzer/ESPWiFiAnalyzer/ESPWiFiAnalyzer.ino +++ b/examples/WiFiAnalyzer/ESPWiFiAnalyzer/ESPWiFiAnalyzer.ino @@ -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 ******************************************************************************/ diff --git a/examples/WiFiAnalyzer/RTLWiFiAnalyzer/RTLWiFiAnalyzer.ino b/examples/WiFiAnalyzer/RTLWiFiAnalyzer/RTLWiFiAnalyzer.ino index 7f8eb194..cd9bc8e4 100644 --- a/examples/WiFiAnalyzer/RTLWiFiAnalyzer/RTLWiFiAnalyzer.ino +++ b/examples/WiFiAnalyzer/RTLWiFiAnalyzer/RTLWiFiAnalyzer.ino @@ -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 diff --git a/examples/WiFiPhotoFrame/WiFiPhotoFrame.ino b/examples/WiFiPhotoFrame/WiFiPhotoFrame.ino index ca178688..96205e09 100644 --- a/examples/WiFiPhotoFrame/WiFiPhotoFrame.ino +++ b/examples/WiFiPhotoFrame/WiFiPhotoFrame.ino @@ -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 ******************************************************************************/ diff --git a/src/Arduino_GFX_Library.h b/src/Arduino_GFX_Library.h index d9a1fb13..f5a84ef5 100644 --- a/src/Arduino_GFX_Library.h +++ b/src/Arduino_GFX_Library.h @@ -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