Skip to content

Commit 1de7735

Browse files
Update factory test examples
1 parent 07e8de5 commit 1de7735

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

examples/Factory_Test/WiFi_LoRa_32FactoryTest/WiFi_LoRa_32FactoryTest.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include "WiFi.h"
2828
#include "images.h"
2929

30+
#define BAND 868E6 //you can set band here directly,e.g. 868E6,915E6
31+
3032
String rssi = "RSSI --";
3133
String packSize = "--";
3234
String packet;
@@ -152,7 +154,7 @@ void interrupt_GPIO0()
152154

153155
void setup()
154156
{
155-
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Enable*/, true /*Serial Enable*/, true /*LoRa use PABOOST*/, 868E6 /*LoRa RF working band*/);
157+
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Enable*/, true /*Serial Enable*/, true /*LoRa use PABOOST*/, BAND /*LoRa RF working band*/);
156158

157159
logo();
158160
delay(300);

examples/Factory_Test/Wireless_Stick_FactoryTest/Wireless_Stick_FactoryTest.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include "heltec.h"
2525
#include "WiFi.h"
2626

27+
#define BAND 868E6 //you can set band here directly,e.g. 868E6,915E6
28+
2729
String rssi = "RSSI --";
2830
String packSize = "--";
2931
String packet;
@@ -130,7 +132,7 @@ void interrupt_GPIO0()
130132
void setup()
131133
{
132134
pinMode(LED,OUTPUT);
133-
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, 868E6 /**/);
135+
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, BAND /**/);
134136

135137
WIFISetUp();
136138
WIFIScan(1);

examples/Factory_Test/Wireless_Stick_Lite_FactoryTest/Wireless_Stick_Lite_FactoryTest.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include "heltec.h"
2828
#include "WiFi.h"
2929

30+
#define BAND 868E6 //you can set band here directly,e.g. 868E6,915E6
31+
3032
uint64_t chipid;
3133
bool IsACKRecvied = false;
3234

@@ -129,7 +131,7 @@ void interrupt_GPIO0()
129131
void setup()
130132
{
131133
pinMode(LED,OUTPUT);
132-
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, 868E6 /**/);
134+
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, BAND /**/);
133135

134136
WIFISetUp();
135137
WIFIScan(1);

0 commit comments

Comments
 (0)