[RF69] Fixed comments in example

pull/13/head
jgromes 2019-02-10 13:08:47 +01:00
rodzic c127a27446
commit 9f53e01c28
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
/* /*
RadioLib SX127x Settings Example RadioLib RF69 Settings Example
This example shows how to change all the properties of RF69 radio. This example shows how to change all the properties of RF69 radio.
RadioLib currently supports the following settings: RadioLib currently supports the following settings:
@ -15,7 +15,7 @@
// include the library // include the library
#include <RadioLib.h> #include <RadioLib.h>
// SX1278 module is in slot A on the shield // RF69 module is in slot A on the shield
RF69 rf1 = RadioShield.ModuleA; RF69 rf1 = RadioShield.ModuleA;
// if you're not using RadioShield, you can specify // if you're not using RadioShield, you can specify
@ -53,7 +53,7 @@ void setup() {
// frequency deviation: 60.0 kHz // frequency deviation: 60.0 kHz
// output power: 17 dBm // output power: 17 dBm
// sync word: 0x2D01 // sync word: 0x2D01
state = rf1.begin(868.0, 300.0, 250.0, 60.0, 17); state = rf2.begin(868.0, 300.0, 250.0, 60.0, 17);
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));
} else { } else {
@ -67,7 +67,7 @@ void setup() {
// set carrier frequency to 433.5 MHz // set carrier frequency to 433.5 MHz
if (rf1.setFrequency(433.5) == ERR_INVALID_FREQUENCY) { if (rf1.setFrequency(433.5) == ERR_INVALID_FREQUENCY) {
Serial.println(F("Selected frequency is invalid for this module!")); Serial.println(F("[RF69] Selected frequency is invalid for this module!"));
while (true); while (true);
} }