mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-30 22:50:57 +00:00
fix lora, add v1/v2 variant targets
This commit is contained in:
@@ -637,7 +637,7 @@ void Screen::setup()
|
||||
touchScreenImpl1->init();
|
||||
}
|
||||
}
|
||||
#elif HAS_TOUCHSCREEN && !defined(USE_EINK)
|
||||
#elif HAS_TOUCHSCREEN && !defined(USE_EINK) && !defined(USE_EPD)
|
||||
touchScreenImpl1 =
|
||||
new TouchScreenImpl1(dispdev->getWidth(), dispdev->getHeight(), static_cast<TFTDisplay *>(dispdev)->getTouch);
|
||||
touchScreenImpl1->init();
|
||||
|
||||
11
src/main.cpp
11
src/main.cpp
@@ -394,6 +394,17 @@ void setup()
|
||||
io.pinMode(EXPANDS_GPIO_EN, OUTPUT);
|
||||
io.digitalWrite(EXPANDS_GPIO_EN, HIGH);
|
||||
io.pinMode(EXPANDS_SD_PULLEN, INPUT);
|
||||
#elif defined(T5_S3_EPAPER_PRO)
|
||||
pinMode(LORA_CS, OUTPUT);
|
||||
digitalWrite(LORA_CS, HIGH);
|
||||
pinMode(SDCARD_CS, OUTPUT);
|
||||
digitalWrite(SDCARD_CS, HIGH);
|
||||
pinMode(BOARD_BL_EN, OUTPUT);
|
||||
io.begin(Wire, PCA9535_ADDR, SDA, SCL);
|
||||
io.configPort(ExtensionIOXL9555::PORT0, 0x00);
|
||||
io.configPort(ExtensionIOXL9555::PORT1, 0xFF);
|
||||
io.digitalWrite(PCA9535_IO00_LORA_EN, HIGH);
|
||||
delay(100);
|
||||
#endif
|
||||
concurrency::hasBeenSetup = true;
|
||||
#if ARCH_PORTDUINO
|
||||
|
||||
Reference in New Issue
Block a user