Fix Heltec T1 pin definitions

SPI pins that are set to -1 cause OOB reads on NRF52. The unused Serial2 pin definitions were removed to avoid potential issues with the Uart framework.
This commit is contained in:
taco
2026-08-13 00:12:37 +10:00
parent e9edfc8e1a
commit 3ea541f1f2
+3 -4
View File
@@ -25,8 +25,8 @@
#define ST7735_SDA (0 + 24) #define ST7735_SDA (0 + 24)
#define ST7735_SCK (32 + 0) #define ST7735_SCK (32 + 0)
#define ST7735_RESET (0 + 20) #define ST7735_RESET (0 + 20)
#define ST7735_MISO (-1) #define ST7735_MISO (0) // 0 maps to 0xff on this device which is NRFX_SPIM_PIN_NOT_USED
#define ST7735_BUSY (-1) #define ST7735_BUSY (0) // 0 maps to 0xff on this device which is NRFX_SPIM_PIN_NOT_USED
#define ST7735_BL (0 + 15) #define ST7735_BL (0 + 15)
#define VTFT_CTRL (0 + 13) #define VTFT_CTRL (0 + 13)
@@ -66,8 +66,7 @@
// UART // UART
// No longer populated on PCB. // No longer populated on PCB.
#define PIN_SERIAL2_RX (-1) // Removed the pin definitions to avoid potential issues with Uart.
#define PIN_SERIAL2_TX (-1)
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// I2C // I2C