WT32-SC01 support

This commit is contained in:
Manuel
2025-04-14 16:45:33 +02:00
parent 3cdb8a6303
commit 3fde170dca
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class LGFX_WT_SC01_PLUS : public lgfx::LGFX_Device
cfg.bus_shared = true;
cfg.offset_rotation = 0;
// I2C
cfg.i2c_port = 1;
cfg.i2c_port = 0;
cfg.i2c_addr = 0x38;
cfg.pin_sda = 6;
cfg.pin_scl = 5;
+1 -1
View File
@@ -13,7 +13,7 @@
extern const uint8_t MT_MAGIC_0;
UARTClient::UARTClient(void) : _serial(nullptr) {}
UARTClient::UARTClient(void) : _serial(nullptr), lastReceived(0) {}
/**
* @brief init serial interface
+6 -1
View File
@@ -10,7 +10,12 @@ fs::SDMMCFS &SDFs = SD_MMC;
#elif defined(ARCH_PORTDUINO)
fs::FS &SDFs = PortduinoFS;
#elif defined(HAS_SDCARD)
SPIClass &SDHandler = SPI;
#ifdef SDCARD_USE_SPI1
static SPIClass SPI1(HSPI);
static SPIClass &SDHandler = SPI1;
#else
static SPIClass &SDHandler = SPI;
#endif
SdFs SDFs;
using File = FsFile;
#endif