mirror of
https://github.com/adafruit/Adafruit_ILI9341.git
synced 2026-10-26 22:10:38 +00:00
added support for Maxim boards
This commit is contained in:
1 parent
3d4f36cb12
commit
e09e4376c8
4 files changed
+20
-2
No files matched your search
+2
-2
@@ -28,7 +28,7 @@
|
||||
#if defined(ARDUINO_STM32_FEATHER)
|
||||
typedef volatile uint32 RwReg;
|
||||
#endif
|
||||
#if defined(ARDUINO_FEATHER52)
|
||||
#if defined(ARDUINO_FEATHER52) || defined (ARDUINO_MAXIM)
|
||||
typedef volatile uint32_t RwReg;
|
||||
#endif
|
||||
|
||||
@@ -114,7 +114,7 @@ typedef volatile uint32_t RwReg;
|
||||
#define ILI9341_GREENYELLOW 0xAFE5 /* 173, 255, 47 */
|
||||
#define ILI9341_PINK 0xF81F
|
||||
|
||||
#if defined (ARDUINO_STM32_FEATHER) // doesnt work on wiced feather
|
||||
#if defined (ARDUINO_STM32_FEATHER) || defined (ARDUINO_MAXIM) // doesnt work on wiced feather
|
||||
#undef USE_FAST_PINIO
|
||||
#elif defined (__AVR__) || defined(TEENSYDUINO) || defined(ESP8266) || defined (ESP32) || defined(__arm__)
|
||||
#define USE_FAST_PINIO
|
||||
|
||||
@@ -56,6 +56,12 @@
|
||||
#define STMPE_CS 30
|
||||
#define SD_CS 27
|
||||
#endif
|
||||
#ifdef ARDUINO_MAX32620FTHR
|
||||
#define TFT_DC P5_4
|
||||
#define TFT_CS P5_3
|
||||
#define STMPE_CS P3_3
|
||||
#define SD_CS P3_2
|
||||
#endif
|
||||
|
||||
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
|
||||
Adafruit_STMPE610 ts = Adafruit_STMPE610(STMPE_CS);
|
||||
|
||||
@@ -52,6 +52,12 @@
|
||||
#define STMPE_CS 30
|
||||
#define SD_CS 27
|
||||
#endif
|
||||
#ifdef ARDUINO_MAX32620FTHR
|
||||
#define TFT_DC P5_4
|
||||
#define TFT_CS P5_3
|
||||
#define STMPE_CS P3_3
|
||||
#define SD_CS P3_2
|
||||
#endif
|
||||
|
||||
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
|
||||
|
||||
|
||||
@@ -55,6 +55,12 @@
|
||||
#define STMPE_CS 30
|
||||
#define SD_CS 27
|
||||
#endif
|
||||
#ifdef ARDUINO_MAX32620FTHR
|
||||
#define TFT_DC P5_4
|
||||
#define TFT_CS P5_3
|
||||
#define STMPE_CS P3_3
|
||||
#define SD_CS P3_2
|
||||
#endif
|
||||
|
||||
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
|
||||
Adafruit_STMPE610 ts = Adafruit_STMPE610(STMPE_CS);
|
||||
|
||||
Reference in new issue
Block a user