Update factory Settings
This commit is contained in:
parent
d962b7147d
commit
28a577f6fd
2 changed files with 14 additions and 10 deletions
|
|
@ -98,6 +98,8 @@ void setup() {
|
|||
delay(100);
|
||||
pinMode(LED_PIN, OUTPUT);
|
||||
digitalWrite(LED_PIN, 0);
|
||||
|
||||
//Scannig WiFi
|
||||
Serial.println("Scannig WiFi...");
|
||||
if (u8g2) {
|
||||
u8g2->clearBuffer();
|
||||
|
|
@ -133,7 +135,9 @@ void setup() {
|
|||
// SPI.begin(5, 3, 6);
|
||||
// initialize SX1262 with default settings
|
||||
Serial.print(F("[SX1262] Initializing ... "));
|
||||
int state = radio.begin(868);
|
||||
|
||||
int state = radio.begin(850);//
|
||||
|
||||
if (state == RADIOLIB_ERR_NONE) {
|
||||
radio.setBandwidth(125);
|
||||
radio.setOutputPower(22);
|
||||
|
|
|
|||
|
|
@ -91,14 +91,14 @@ void setup() {
|
|||
delay(3000);
|
||||
}
|
||||
radio.setRfSwitchPins(15, 14);
|
||||
Serial.println("0000");
|
||||
SPI.begin(RADIO_SCLK_PIN, RADIO_MISO_PIN, RADIO_MOSI_PIN);
|
||||
WiFi.mode(WIFI_STA);
|
||||
WiFi.disconnect();
|
||||
Serial.println("1111");
|
||||
delay(100);
|
||||
pinMode(LED_PIN, OUTPUT);
|
||||
digitalWrite(LED_PIN, 0);
|
||||
|
||||
//Scannig WiFi
|
||||
Serial.println("Scannig WiFi...");
|
||||
if (u8g2) {
|
||||
u8g2->clearBuffer();
|
||||
|
|
@ -134,7 +134,7 @@ void setup() {
|
|||
}
|
||||
// initialize SX1262 with default settings
|
||||
Serial.print(F("[SX1262] Initializing ... "));
|
||||
int state = radio.begin(868.0);
|
||||
int state = radio.begin(850);
|
||||
if (state == RADIOLIB_ERR_NONE) {
|
||||
radio.setBandwidth(125);
|
||||
radio.setOutputPower(22);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue