mirror of
https://github.com/pelgraine/Meck.git
synced 2026-08-06 16:52:46 +02:00
t5s3 wifi remote repeater
This commit is contained in:
@@ -99,7 +99,8 @@ void setup() {
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// SD card init — needed for MQTT config (/remote/mqtt.cfg, /remote/wifi.cfg)
|
||||
// SD, LoRa, and e-ink share the same SPI bus on T-Deck Pro.
|
||||
// T-Deck Pro: SD shares display SPI bus (HSPI via displaySpi)
|
||||
// T5S3: SD shares LoRa SPI bus (SCK=14, MOSI=13, MISO=21)
|
||||
// ---------------------------------------------------------------------------
|
||||
#if defined(HAS_4G_MODEM) || defined(MECK_WIFI_REMOTE)
|
||||
{
|
||||
@@ -119,7 +120,12 @@ void setup() {
|
||||
delay(100);
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
#ifdef SDCARD_CS
|
||||
#if defined(LilyGo_T5S3_EPaper_Pro)
|
||||
// T5S3: SD shares LoRa SPI bus — create local HSPI reference
|
||||
static SPIClass sdSpi(HSPI);
|
||||
sdSpi.begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI, SDCARD_CS);
|
||||
if (SD.begin(SDCARD_CS, sdSpi, 4000000)) { sdCardReady = true; break; }
|
||||
#elif defined(SDCARD_CS)
|
||||
extern SPIClass displaySpi;
|
||||
if (SD.begin(SDCARD_CS, displaySpi)) { sdCardReady = true; break; }
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user