acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
Arduino_GFX_Library.h (7803B)
1 #ifndef _ARDUINO_GFX_LIBRARIES_H_ 2 #define _ARDUINO_GFX_LIBRARIES_H_ 3 4 #include "Arduino_DataBus.h" 5 #include "databus/Arduino_AVRPAR8.h" 6 #include "databus/Arduino_AVRPAR16.h" 7 #include "databus/Arduino_ESP32LCD8.h" 8 #include "databus/Arduino_ESP32LCD16.h" 9 #include "databus/Arduino_ESP32PAR8.h" 10 #include "databus/Arduino_ESP32PAR8Q.h" 11 #include "databus/Arduino_ESP32PAR8QQ.h" 12 #include "databus/Arduino_ESP32PAR16.h" 13 #include "databus/Arduino_ESP32PAR16Q.h" 14 #include "databus/Arduino_ESP32PAR16QQ.h" 15 #include "databus/Arduino_ESP32RGBPanel.h" 16 #include "databus/Arduino_ESP32S2PAR8.h" 17 #include "databus/Arduino_ESP32S2PAR8Q.h" 18 #include "databus/Arduino_ESP32S2PAR16.h" 19 #include "databus/Arduino_ESP32S2PAR16Q.h" 20 #include "databus/Arduino_ESP32SPI.h" 21 #include "databus/Arduino_ESP8266SPI.h" 22 #include "databus/Arduino_HWSPI.h" 23 #include "databus/Arduino_mbedSPI.h" 24 #include "databus/Arduino_NRFXSPI.h" 25 #include "databus/Arduino_RPiPicoPAR8.h" 26 #include "databus/Arduino_RPiPicoPAR16.h" 27 #include "databus/Arduino_RPiPicoSPI.h" 28 #include "databus/Arduino_RTLPAR8.h" 29 #include "databus/Arduino_STM32PAR8.h" 30 #include "databus/Arduino_SWPAR8.h" 31 #include "databus/Arduino_SWPAR16.h" 32 #include "databus/Arduino_SWSPI.h" 33 #include "databus/Arduino_XL9535SWSPI.h" 34 35 #include "Arduino_GFX.h" // Core graphics library 36 #if !defined(LITTLE_FOOT_PRINT) 37 #include "canvas/Arduino_Canvas.h" 38 #include "canvas/Arduino_Canvas_Indexed.h" 39 #include "canvas/Arduino_Canvas_3bit.h" 40 #include "canvas/Arduino_Canvas_Mono.h" 41 #include "display/Arduino_ILI9488_3bit.h" 42 #endif // !defined(LITTLE_FOOT_PRINT) 43 44 #include "display/Arduino_GC9106.h" 45 #include "display/Arduino_GC9107.h" 46 #include "display/Arduino_GC9A01.h" 47 #include "display/Arduino_HX8347C.h" 48 #include "display/Arduino_HX8347D.h" 49 #include "display/Arduino_HX8352C.h" 50 #include "display/Arduino_HX8357A.h" 51 #include "display/Arduino_HX8357B.h" 52 #include "display/Arduino_HX8369A.h" 53 #include "display/Arduino_ILI9225.h" 54 #include "display/Arduino_ILI9331.h" 55 #include "display/Arduino_ILI9341.h" 56 #include "display/Arduino_ILI9342.h" 57 #include "display/Arduino_ILI9481_18bit.h" 58 #include "display/Arduino_ILI9486.h" 59 #include "display/Arduino_ILI9486_18bit.h" 60 #include "display/Arduino_ILI9488.h" 61 #include "display/Arduino_ILI9488_18bit.h" 62 #include "display/Arduino_ILI9806.h" 63 #include "display/Arduino_JBT6K71.h" 64 #include "display/Arduino_NT35310.h" 65 #include "display/Arduino_NT35510.h" 66 #include "display/Arduino_NT39125.h" 67 #include "display/Arduino_NV3041A.h" 68 #include "display/Arduino_OTM8009A.h" 69 #include "display/Arduino_R61529.h" 70 #include "display/Arduino_RGB_Display.h" 71 #include "display/Arduino_SEPS525.h" 72 #include "display/Arduino_SSD1283A.h" 73 #include "display/Arduino_SSD1331.h" 74 #include "display/Arduino_SSD1351.h" 75 #include "display/Arduino_ST7735.h" 76 #include "display/Arduino_ST7789.h" 77 #include "display/Arduino_ST7796.h" 78 79 #if defined(ARDUINO_ARCH_SAMD) && defined(SEEED_GROVE_UI_WIRELESS) 80 #define DISPLAY_DEV_KIT 81 #define WIO_TERMINAL 82 #define DF_GFX_CS LCD_SS_PIN 83 #define DF_GFX_DC LCD_DC 84 #define DF_GFX_RST GFX_NOT_DEFINED 85 #define DF_GFX_BL LCD_BACKLIGHT 86 #elif defined(ARDUINO_ESP32_S3_BOX) 87 #define DISPLAY_DEV_KIT 88 #define ESP32_S3_BOX 89 #define DF_GFX_SCK TFT_CLK 90 #define DF_GFX_MOSI TFT_MOSI 91 #define DF_GFX_MISO TFT_MISO 92 #define DF_GFX_CS TFT_CS 93 #define DF_GFX_DC TFT_DC 94 #define DF_GFX_RST TFT_RST 95 #define DF_GFX_BL TFT_BL 96 #elif defined(ARDUINO_M5Stack_Core_ESP32) || defined(ARDUINO_M5STACK_FIRE) 97 #define DISPLAY_DEV_KIT 98 #define M5STACK_CORE 99 #define DF_GFX_SCK 18 100 #define DF_GFX_MOSI 23 101 #define DF_GFX_MISO 19 102 #define DF_GFX_CS 14 103 #define DF_GFX_DC 27 104 #define DF_GFX_RST 33 105 #define DF_GFX_BL 32 106 #elif defined(ARDUINO_ODROID_ESP32) 107 #define DISPLAY_DEV_KIT 108 #define ODROID_GO 109 #define DF_GFX_SCK 18 110 #define DF_GFX_MOSI 23 111 #define DF_GFX_MISO 19 112 #define DF_GFX_CS 5 113 #define DF_GFX_DC 21 114 #define DF_GFX_RST GFX_NOT_DEFINED 115 #define DF_GFX_BL 14 116 /* TTGO T-Watch */ 117 #elif defined(ARDUINO_T) || defined(ARDUINO_TWATCH_BASE) || defined(ARDUINO_TWATCH_2020_V1) || defined(ARDUINO_TWATCH_2020_V2) 118 #define DISPLAY_DEV_KIT 119 #define TTGO_T_WATCH 120 #define DF_GFX_SCK 18 121 #define DF_GFX_MOSI 19 122 #define DF_GFX_MISO GFX_NOT_DEFINED 123 #define DF_GFX_CS 5 124 #define DF_GFX_DC 27 125 #define DF_GFX_RST GFX_NOT_DEFINED 126 #define DF_GFX_BL 12 127 /* Waveshare RP2040-LCD-1.28 */ 128 #elif defined(ARDUINO_WAVESHARE_RP2040_LCD_1_28) 129 #define DISPLAY_DEV_KIT 130 #define WAVESHARE_RP2040_LCD_1_28 131 #define DF_GFX_SCK 10 132 #define DF_GFX_MOSI 11 133 #define DF_GFX_MISO 12 134 #define DF_GFX_CS 9 135 #define DF_GFX_DC 8 136 #define DF_GFX_RST 12 137 #define DF_GFX_BL 25 138 #define DF_GFX_SPI spi1 139 #elif defined(ARDUINO_ARCH_NRF52840) 140 #define DF_GFX_SCK 13 141 #define DF_GFX_MOSI 11 142 #define DF_GFX_MISO 12 143 #define DF_GFX_CS 9 144 #define DF_GFX_DC 8 145 #define DF_GFX_RST 7 146 #define DF_GFX_BL 6 147 #elif defined(__IMXRT1052__) || defined(__IMXRT1062__) 148 // PJRC Teensy 4.x 149 #define DF_GFX_SCK 13 150 #define DF_GFX_MOSI 11 151 #define DF_GFX_MISO 12 152 #define DF_GFX_CS 39 // GFX_NOT_DEFINED for display without CS pin 153 #define DF_GFX_DC 41 154 #define DF_GFX_RST 40 155 #define DF_GFX_BL 22 156 #elif defined(ARDUINO_BLACKPILL_F411CE) 157 #define DF_GFX_SCK 5 158 #define DF_GFX_MOSI 7 159 #define DF_GFX_MISO 6 160 #define DF_GFX_CS 4 161 #define DF_GFX_DC 3 162 #define DF_GFX_RST 2 163 #define DF_GFX_BL 1 164 #elif defined(TARGET_RP2040) 165 #define DF_GFX_SCK 18 166 #define DF_GFX_MOSI 19 167 #define DF_GFX_MISO 16 168 #define DF_GFX_CS 17 169 #define DF_GFX_DC 27 170 #define DF_GFX_RST 26 171 #define DF_GFX_BL 28 172 #define DF_GFX_SPI spi0 173 #elif defined(ESP32) && (CONFIG_IDF_TARGET_ESP32) 174 #define DF_GFX_SCK 18 175 #define DF_GFX_MOSI 23 176 #define DF_GFX_MISO GFX_NOT_DEFINED 177 #define DF_GFX_CS 5 178 #define DF_GFX_DC 27 179 #define DF_GFX_RST 33 180 #define DF_GFX_BL 22 181 #elif defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S2) 182 #define DF_GFX_SCK 36 183 #define DF_GFX_MOSI 35 184 #define DF_GFX_MISO GFX_NOT_DEFINED 185 #define DF_GFX_CS 34 186 #define DF_GFX_DC 38 187 #define DF_GFX_RST 33 188 #define DF_GFX_BL 21 189 #elif defined(ESP32) && (CONFIG_IDF_TARGET_ESP32S3) 190 #define DF_GFX_SCK 36 191 #define DF_GFX_MOSI 35 192 #define DF_GFX_MISO GFX_NOT_DEFINED 193 #define DF_GFX_CS 40 194 #define DF_GFX_DC 41 195 #define DF_GFX_RST 42 196 #define DF_GFX_BL 48 197 #elif defined(ESP32) && (CONFIG_IDF_TARGET_ESP32C3) 198 #define DF_GFX_SCK 4 199 #define DF_GFX_MOSI 6 200 #define DF_GFX_MISO GFX_NOT_DEFINED 201 #define DF_GFX_CS 7 202 #define DF_GFX_DC 2 203 #define DF_GFX_RST 1 204 #define DF_GFX_BL 3 205 #elif defined(ESP8266) 206 #define DF_GFX_SCK 14 207 #define DF_GFX_MOSI 13 208 #define DF_GFX_MISO 12 209 #define DF_GFX_CS 15 210 #define DF_GFX_DC 4 211 #define DF_GFX_RST 2 212 #define DF_GFX_BL 5 213 #elif defined(RTL8722DM) 214 #if defined(BOARD_RTL8720DN_BW16) 215 #define DF_GFX_SCK 10 216 #define DF_GFX_MOSI 12 217 #define DF_GFX_MISO 11 218 #define DF_GFX_CS 9 219 #define DF_GFX_DC 8 220 #define DF_GFX_RST 6 221 #define DF_GFX_BL 3 222 #elif defined(BOARD_RTL8722DM) 223 #define DF_GFX_SCK 13 224 #define DF_GFX_MOSI 11 225 #define DF_GFX_MISO 12 226 #define DF_GFX_CS 18 227 #define DF_GFX_DC 17 228 #define DF_GFX_RST 22 229 #define DF_GFX_BL 23 230 #elif defined(BOARD_RTL8722DM_MINI) 231 #define DF_GFX_SCK 11 232 #define DF_GFX_MOSI 9 233 #define DF_GFX_MISO 10 234 #define DF_GFX_CS 12 235 #define DF_GFX_DC 14 236 #define DF_GFX_RST 15 237 #define DF_GFX_BL 13 238 #else // old version 239 #define DF_GFX_SCK 19 240 #define DF_GFX_MOSI 21 241 #define DF_GFX_MISO 20 242 #define DF_GFX_CS 18 // GFX_NOT_DEFINED for display without CS pin 243 #define DF_GFX_DC 17 244 #define DF_GFX_RST 2 245 #define DF_GFX_BL 23 246 #endif 247 #elif defined(SEEED_XIAO_M0) 248 #define DF_GFX_SCK 8 249 #define DF_GFX_MOSI 10 250 #define DF_GFX_MISO 9 251 #define DF_GFX_CS 3 // GFX_NOT_DEFINED for display without CS pin 252 #define DF_GFX_DC 2 253 #define DF_GFX_RST 1 254 #define DF_GFX_BL 0 255 #else // default pins for Arduino Nano, Mini, Micro and more 256 #define DF_GFX_SCK 13 257 #define DF_GFX_MOSI 11 258 #define DF_GFX_MISO 12 259 #define DF_GFX_CS 9 260 #define DF_GFX_DC 8 261 #define DF_GFX_RST 7 262 #define DF_GFX_BL 6 263 #endif 264 265 Arduino_DataBus *create_default_Arduino_DataBus(); 266 Arduino_GFX *create_default_Arduino_GFX(); 267 268 #endif // _ARDUINO_GFX_LIBRARIES_H_