begin support for TFT displays

This commit is contained in:
geeksville
2020-08-17 13:47:05 -07:00
parent e3b74ece74
commit d91ab5480f
7 changed files with 372 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ const uint32_t g_ADigitalPinMap[] = {
7, // D6 is P0.07
34, // D7 is P1.02 (Button)
16, // D8 is P0.16 (NeoPixel)
26, // D9 is P0.26
26, // D9 is P0.26 D_RS (IPS data/command control)
27, // D10 is P0.27
6, // D11 is P0.06 D_RES (IPS display reset)
8, // D12 is P0.08 D_CS (IPS display chip select)
+5 -1
View File
@@ -82,7 +82,6 @@ static const uint8_t A5 = PIN_A5;
#define PIN_VBAT PIN_A4
#define PIN_NFC1 (33)
#define PIN_NFC2 (2)
#define PIN_DISPLAY_RESET (11) // Output
#define PIN_PIEZO (37)
static const uint8_t AREF = PIN_AREF;
@@ -130,6 +129,11 @@ static const uint8_t SCK = PIN_SPI_SCK;
(15) // FIXME, see warning hre https://github.com/BigCorvus/SX1262-LoRa-BLE-Relay/blob/master/LORA_RELAY_NRF52840.ino
#define SX1262_E22 // Indicates this SX1262 is inside of an ebyte E22 module and special config should be done for that
#define ST7735_RESET (11) // Output
#define ST7735_CS (12)
#define ST7735_BACKLIGHT_EN (13)
#define ST7735_RS (9)
#ifdef __cplusplus
}
#endif