user setup for M5Stack Core2

This commit is contained in:
John Belmonte 2022-05-07 16:51:02 +09:00
parent 7d5fe20e43
commit 11bb028599
2 changed files with 29 additions and 0 deletions

View File

@ -90,6 +90,7 @@
//#include <User_Setups/Setup71_ESP32_S2_ST7789.h> // Setup file for ESP32 S2 with ST7789
//#include <User_Setups/Setup72_ESP32_ST7789_172x320.h> // Setup file for ESP32 with ST7789 1.47" 172x320
//#include <User_Setups/Setup73_M5Stack_Core2.h> // Setup file for the ESP32 based M5Stack Core2
//#include <User_Setups/Setup100_RP2040_ILI9488_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9488
//#include <User_Setups/Setup101_RP2040_ILI9481_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9481

View File

@ -0,0 +1,28 @@
#define USER_SETUP_ID 73
#define ILI9341_DRIVER
#define TFT_SDA_READ
#define M5STACK // mirror image correction
#define TFT_INVERSION_ON
#define TFT_MISO 38
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS 5
#define TFT_DC 15
#define TFT_RST -1
#define TOUCH_CS -1 // (suppress warning)
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT
#define SPI_FREQUENCY 40000000
#define SPI_READ_FREQUENCY 16000000