Skip to content

Commit

Permalink
Update factory test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Heltec-Aaron-Lee committed Jul 18, 2019
1 parent 07e8de5 commit 1de7735
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "WiFi.h"
#include "images.h"

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

String rssi = "RSSI --";
String packSize = "--";
String packet;
Expand Down Expand Up @@ -152,7 +154,7 @@ void interrupt_GPIO0()

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

logo();
delay(300);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include "heltec.h"
#include "WiFi.h"

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

String rssi = "RSSI --";
String packSize = "--";
String packet;
Expand Down Expand Up @@ -130,7 +132,7 @@ void interrupt_GPIO0()
void setup()
{
pinMode(LED,OUTPUT);
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, 868E6 /**/);
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, BAND /**/);

WIFISetUp();
WIFIScan(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "heltec.h"
#include "WiFi.h"

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

uint64_t chipid;
bool IsACKRecvied = false;

Expand Down Expand Up @@ -129,7 +131,7 @@ void interrupt_GPIO0()
void setup()
{
pinMode(LED,OUTPUT);
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, 868E6 /**/);
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, BAND /**/);

WIFISetUp();
WIFIScan(1);
Expand Down

0 comments on commit 1de7735

Please sign in to comment.