mirror of
https://github.com/m5stack/meshtastic-device-ui.git
synced 2026-05-20 11:51:03 -07:00
WT32-SC01 support
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user