NerdNos-Firmware/Lib/TFT_eSPI/User_Setups/Setup22_TTGO_T4.h
BitMaker-hub 3a09daeab2 Move to PlatformIO
- [x]  Move project to platformIO
- [x]  Bug rectangle on screen when 1milion shares
- [x]  Bug memory leaks
- [x]  Bug Reboots when received JSON contains some null values
- Readme update with build troubleshooting
TODO
- [ ]  Improve hashrate using Blockstream Jade miner code
- [ ]  Add blockHeight to screen
- [ ]  Add new screen with global mining stats
- [ ]  Add support to control BM1397
2023-04-15 23:56:13 +02:00

37 lines
811 B
C

// Setup for the TTGO T4 v1.1 ("Bitcoin Tracker") ESP32 board with 2.2" ILI9341 display
#define USER_SETUP_ID 22
// See SetupX_Template.h for all options available
#define ILI9341_DRIVER
//#define TFT_BACKLIGHT_ON HIGH // LED control for TTGO T4 v1.3 only
//#define TFT_BL 4
#define TFT_MISO 12
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS 27
#define TFT_DC 26 // pin 32 for TTGO T4 v1.3
#define TFT_RST 5
#define TOUCH_CS -1
#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 27000000
#define SPI_FREQUENCY 40000000 // Maximum for ILI9341
#define USE_HSPI_PORT
#define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V