HelTecAutomation / Heltec_ESP32

Arduino library for Heltec ESP32 (or ESP32+LoRa) based boards
Other
581 stars 219 forks source link

"HELTEC_BOARD was not declared in this scope" - LoRaSender.ino #132

Closed Frosty-STI closed 3 months ago

Frosty-STI commented 3 months ago

I receive these errors upon compiling LoRaSender.ino:

C:\Users\brend\OneDrive\Documents\Arduino\LoRaReceiver\LoRaReceiver.ino: In function 'void setup()': C:\Users\brend\OneDrive\Documents\Arduino\LoRaReceiver\LoRaReceiver.ino:57:15: error: 'HELTEC_BOARD' was not declared in this scope Mcu.begin(HELTEC_BOARD,SLOW_CLK_TPYE); ^~~~ C:\Users\brend\OneDrive\Documents\Arduino\LoRaReceiver\LoRaReceiver.ino:57:28: error: 'SLOW_CLK_TPYE' was not declared in this scope Mcu.begin(HELTEC_BOARD,SLOW_CLK_TPYE); ^~~~~

exit status 1

Compilation error: 'HELTEC_BOARD' was not declared in this scope

Board: Heltec ESP32 Wireless Stick V3

I have installed the Heltec_ESP32 library, added the board URL to the board manager ( https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series.git ), and selected 'Heltec Wireless Stick' as my target device.

GM-BLUE13 commented 3 months ago

I have the same issue. Did you find something?

Mr-HaleYa commented 3 months ago

Did you change the board manager JSON from https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/releases/download/X.X.X/package_heltec_esp32_index.json to this https://resource.heltec.cn/download/package_heltec_esp32_index.json restarted Arduino, and installed the board and it looks like this? image

I had that error when I had the old board framework still installed

Frosty-STI commented 3 months ago

Thank you @Mr-HaleYa !!!!!!!!!!! Works perfect now. I wasn't sure if I had the right board manager URL but the one you provided definitely is, thanks again :)

AyhamAl-Ali commented 4 weeks ago

Another solution: I had to update esp32 from boards manager by Espressif to 3.0.1+ to get it working