added board and speed header

This commit is contained in:
Antonio Vanegas 2020-11-25 13:12:53 +01:00
parent 91e95fe941
commit 63d44ec093
2 changed files with 12 additions and 13 deletions

View File

@ -1,6 +1,6 @@
// clang-format off // clang-format off
// upload_speed 921600 // upload_speed 1500000
// board m5stack-core-esp32 // board esp32dev
#ifndef _TTGOTDISPLAY_H #ifndef _TTGOTDISPLAY_H
#define _TTGOTDISPLAY_H #define _TTGOTDISPLAY_H
@ -10,7 +10,7 @@
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
#define HAS_DISPLAY 2 // TFT-LCD, support work in progess, not ready yet #define HAS_DISPLAY 2 // TFT-LCD, support work in progess, not ready yet
//#define MY_DISPLAY_FLIP 1 // use if display is rotated #define MY_DISPLAY_FLIP 1 // use if display is rotated
#define HAS_LED NOT_A_PIN // no on board LED (?) #define HAS_LED NOT_A_PIN // no on board LED (?)
#define HAS_BUTTON (35) // on board button A #define HAS_BUTTON (35) // on board button A
@ -27,14 +27,14 @@
#define MY_DISPLAY_HEIGHT 240 #define MY_DISPLAY_HEIGHT 240
#define MY_DISPLAY_INVERT 1 #define MY_DISPLAY_INVERT 1
// setting for M5 display // setting for TTGO T-display
#define USER_SETUP_LOADED 1 #define USER_SETUP_LOADED 1
#define ST7789_DRIVER 1 #define ST7789_DRIVER 1
#define CGRAM_OFFSET #define CGRAM_OFFSET
#define TFT_MOSI MOSI // SPI #define TFT_MOSI GPIO_NUM_19 // SPI
#define TFT_SCLK CLK // SPI #define TFT_SCLK GPIO_NUM_18 // SPI
#define TFT_CS GPIO_NUM_5 // Chip select control #define TFT_CS GPIO_NUM_5 // Chip select control
#define TFT_DC GPIO_NUM_16 // Data Command control #define TFT_DC GPIO_NUM_16 // Data Command control
#define TFT_RST GPIO_NUM_23 // Reset #define TFT_RST GPIO_NUM_23 // Reset

View File

@ -10,10 +10,9 @@
#define HAS_LED NOT_A_PIN // no LED #define HAS_LED NOT_A_PIN // no LED
#define HAS_DISPLAY 1 #define HAS_DISPLAY 1
#define MY_DISPLAY_SDA (5)
#define MY_DISPLAY_SCL (4)
#define MY_DISPLAY_RST NOT_A_PIN #define MY_DISPLAY_RST NOT_A_PIN
#define MY_DISPLAY_FLIP 1 // use if display is rotated #define MY_DISPLAY_FLIP 1 // use if display is rotated
#define HAS_BUTTON GPIO_NUM_0
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature