lcd update

This commit is contained in:
2021-08-17 12:53:33 +02:00
parent a217c5cd93
commit 055ed7ec52
7 changed files with 104 additions and 41 deletions

View File

@@ -2,7 +2,6 @@
#define SSD1351_DRIVER
#define TFT_WIDTH 128
#define TFT_HEIGHT 128
@@ -11,19 +10,6 @@
#define SSD1351_1DOT5_INCH_128 // For 128 x 128 display
// Wiring:
// +-------------+------------+-------------------------------------------------------------------+
// | Display PCB | TFT_eSPI | Info |
// +-------------+------------+-------------------------------------------------------------------+
// | GND | GND (0V) | Common |
// | VCC | 5V or 3.3V | Better to power with 5V if display PCB supports it |
// | DIN | TFT_MOSI | SPI data |
// | SCK | TFT_SCLK | SPI clock |
// | DC | TFT_DC | Distinguish between a command or its data |
// | RST | TFT_RST | Hardware reset, can connect to MCU RST pin as well |
// | CS | TFT_CS | Chip select, Set to -1 if for manually use with multiple displays |
// +-------------+------------+-------------------------------------------------------------------+
//#define TFT_MOSI PA7
//#define TFT_SCLK PA5
#define TFT_DC PB1