diff --git a/Examples/UNO_rf95_client/UNO_rf95_client.ino b/Examples/UNO_rf95_client/UNO_rf95_client.ino index 0d3bc79..588ac4a 100644 --- a/Examples/UNO_rf95_client/UNO_rf95_client.ino +++ b/Examples/UNO_rf95_client/UNO_rf95_client.ino @@ -1,6 +1,6 @@ // rf95_client.pde // -*- 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 // reliability, so you should only use RH_RF95 if you do not need the higher // level messaging abilities. @@ -12,6 +12,9 @@ #include // Singleton instance of the radio driver +// Wemos D1 R2 +//RH_RF95 rf95(8, 2); +// Arduino Uno RH_RF95 rf95(10, 2); int led = 7; // do not use SPI pins @@ -21,7 +24,7 @@ void setup() pinMode(led, OUTPUT); 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"); @@ -34,7 +37,7 @@ void setup() // 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); } @@ -79,5 +82,3 @@ void loop() digitalWrite(led, LOW); delay(400); } - -