HelTecAutomation / Heltec_ESP32

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

LoRa BAND selection in every example #11

Open JBSchueler opened 5 years ago

JBSchueler commented 5 years ago

Hi,

Most examples have the same template. WiFi_LoRa_32FactoryTest.ino doesn't have the BAND selection at the top of the file like the LoRa examples.

#define BAND    433E6  //you can set band here directly,e.g. 868E6,915E6

line 134 should than be changed into

Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Enable*/, true /*Serial Enable*/, true /*LoRa use PABOOST*/, BAND /*LoRa RF working band*/);

This way it more clear which frequency is being used.

Heltec-Aaron-Lee commented 5 years ago

Thanks for your advice, we will fix it.