Fixup Heltec support

This commit is contained in:
Sassa NF
2024-12-23 12:08:38 +00:00
parent fe25fc2c60
commit cf53ac75f3
2 changed files with 57 additions and 29 deletions
+4
View File
@@ -75,9 +75,11 @@ void heltec_setup()
SPI.begin();
#endif
#ifdef HELTEC
#ifndef ARDUINO_heltec_wifi_32_lora_V3
hspi->begin(SCK, MISO, MOSI, SS);
#endif
#endif
#ifndef HELTEC_NO_DISPLAY_INSTANCE
heltec_display_power(true);
display.init();
@@ -86,9 +88,11 @@ void heltec_setup()
#endif
}
#ifdef HELTEC
#ifndef ARDUINO_heltec_wifi_32_lora_V3
SPIClass hspi = new SPIClass(2);
#endif
#endif
RADIO_TYPE radio = RADIO_MODULE_INIT();