mirror of
https://github.com/Genaker/LoraSA.git
synced 2026-10-31 02:51:59 +01:00
Get the code to compile again
This commit is contained in:
1 parent
b18e2afd15
commit
2703535278
3 files changed
+7
-38
No files matched your search
@@ -32,10 +32,14 @@
|
||||
#define BUZZER_PIN 35
|
||||
#endif
|
||||
|
||||
// REB trigger PIN
|
||||
#define REB_PIN 42
|
||||
#ifdef T3_V1_6_SX1276
|
||||
// REB trigger PIN — default 42, but LILYGO uses 42 for COMPASS_SCL (I2C),
|
||||
// so remap to 39 to avoid fighting the I2C peripheral.
|
||||
#ifdef LILYGO
|
||||
#define REB_PIN 39
|
||||
#elif defined(T3_V1_6_SX1276)
|
||||
#define REB_PIN 35
|
||||
#else
|
||||
#define REB_PIN 42
|
||||
#endif
|
||||
|
||||
#define WATERFALL_ENABLED true
|
||||
|
||||
@@ -528,34 +528,6 @@ void loopPMU()
|
||||
#endif
|
||||
}
|
||||
|
||||
bool beginDisplay()
|
||||
{
|
||||
/**
|
||||
Wire.beginTransmission(DISPLAY_ADDR);
|
||||
if (Wire.endTransmission() == 0)
|
||||
{
|
||||
Serial.printf("Found Display model at 0x%X address\n", DISPLAY_ADDR);
|
||||
u8g2 = new DISPLAY_MODEL(U8G2_R0, U8X8_PIN_NONE);
|
||||
u8g2->begin();
|
||||
u8g2->clearBuffer();
|
||||
u8g2->setFont(u8g2_font_inb19_mr);
|
||||
u8g2->drawStr(0, 30, "LilyGo");
|
||||
u8g2->drawHLine(2, 35, 47);
|
||||
u8g2->drawHLine(3, 36, 47);
|
||||
u8g2->drawVLine(45, 32, 12);
|
||||
u8g2->drawVLine(46, 33, 12);
|
||||
u8g2->setFont(u8g2_font_inb19_mf);
|
||||
u8g2->drawStr(58, 60, "LoRa");
|
||||
u8g2->sendBuffer();
|
||||
u8g2->setFont(u8g2_font_fur11_tf);
|
||||
delay(3000);
|
||||
return true;
|
||||
}
|
||||
|
||||
Serial.printf("Warning: Failed to find Display at 0x%0X address\n", DISPLAY_ADDR);
|
||||
return false;*/
|
||||
}
|
||||
|
||||
bool beginSDCard()
|
||||
{
|
||||
#ifdef SDCARD_CS
|
||||
@@ -821,11 +793,6 @@ void setupBoards(bool disable_u8g2)
|
||||
Serial.printf("SD card %s is ready.\n", card_type);
|
||||
}
|
||||
|
||||
if (!disable_u8g2)
|
||||
{
|
||||
beginDisplay();
|
||||
}
|
||||
|
||||
beginWiFi();
|
||||
|
||||
#ifdef HAS_GPS
|
||||
|
||||
@@ -61,8 +61,6 @@ void setupBoards(bool disable_u8g2 = true);
|
||||
|
||||
bool beginSDCard();
|
||||
|
||||
bool beginDisplay();
|
||||
|
||||
void disablePeripherals();
|
||||
|
||||
bool beginPower();
|
||||
|
||||
Reference in new issue
Block a user