Typo
This commit is contained in:
parent
5ebef82c63
commit
93e842c1c9
1 changed files with 6 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
// rf95_client.pde
|
// rf95_client.pde
|
||||||
// -*- mode: C++ -*-
|
// -*- mode: C++ -*-
|
||||||
// Example sketch showing how to create a simple messageing client
|
// Example sketch showing how to create a simple messaging client
|
||||||
// with the RH_RF95 class. RH_RF95 class does not provide for addressing or
|
// with the RH_RF95 class. RH_RF95 class does not provide for addressing or
|
||||||
// reliability, so you should only use RH_RF95 if you do not need the higher
|
// reliability, so you should only use RH_RF95 if you do not need the higher
|
||||||
// level messaging abilities.
|
// level messaging abilities.
|
||||||
|
@ -12,6 +12,9 @@
|
||||||
#include <RH_RF95.h>
|
#include <RH_RF95.h>
|
||||||
|
|
||||||
// Singleton instance of the radio driver
|
// Singleton instance of the radio driver
|
||||||
|
// Wemos D1 R2
|
||||||
|
//RH_RF95 rf95(8, 2);
|
||||||
|
// Arduino Uno
|
||||||
RH_RF95 rf95(10, 2);
|
RH_RF95 rf95(10, 2);
|
||||||
|
|
||||||
int led = 7; // do not use SPI pins
|
int led = 7; // do not use SPI pins
|
||||||
|
@ -21,7 +24,7 @@ void setup()
|
||||||
pinMode(led, OUTPUT);
|
pinMode(led, OUTPUT);
|
||||||
|
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
while (!Serial) ; // Wait for serial port to be available
|
//while (!Serial) ; // Wait for serial port to be available
|
||||||
|
|
||||||
Serial.println("Client starting");
|
Serial.println("Client starting");
|
||||||
|
|
||||||
|
@ -34,7 +37,7 @@ void setup()
|
||||||
|
|
||||||
// Defaults after init are 434.0MHz, 13dBm, Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on
|
// Defaults after init are 434.0MHz, 13dBm, Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on
|
||||||
|
|
||||||
rf95.setFrequency(868.0);
|
rf95.setFrequency(868.1);
|
||||||
|
|
||||||
delay(100);
|
delay(100);
|
||||||
}
|
}
|
||||||
|
@ -79,5 +82,3 @@ void loop()
|
||||||
digitalWrite(led, LOW);
|
digitalWrite(led, LOW);
|
||||||
delay(400);
|
delay(400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue