mirror of
https://github.com/Genaker/LoraSA.git
synced 2026-08-08 18:03:08 +02:00
Fixup Heltec support
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user