[RF69] Minor example comment fix

This commit is contained in:
jgromes 2019-02-06 19:39:28 +01:00
parent e65dd10e26
commit 6ff8fda77d
8 changed files with 15 additions and 10 deletions

View file

@ -20,7 +20,7 @@ void setup() {
// Rx bandwidth: 125.0 kHz // Rx bandwidth: 125.0 kHz
// frequency deviation: 50.0 kHz // frequency deviation: 50.0 kHz
// output power: 13 dBm // output power: 13 dBm
// sync word: 0x2D 0x01 // sync word: 0x2D01
int state = rf.begin(); int state = rf.begin();
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));

View file

@ -22,7 +22,7 @@ void setup() {
// Rx bandwidth: 125.0 kHz // Rx bandwidth: 125.0 kHz
// frequency deviation: 50.0 kHz // frequency deviation: 50.0 kHz
// output power: 13 dBm // output power: 13 dBm
// sync word: 0x2D 0x01 // sync word: 0x2D01
int state = rf.begin(); int state = rf.begin();
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));

View file

@ -24,7 +24,7 @@ void setup() {
// Rx bandwidth: 125.0 kHz // Rx bandwidth: 125.0 kHz
// frequency deviation: 50.0 kHz // frequency deviation: 50.0 kHz
// output power: 13 dBm // output power: 13 dBm
// sync word: 0x2D 0x01 // sync word: 0x2D01
int state = rf.begin(); int state = rf.begin();
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));

View file

@ -7,7 +7,12 @@ void setup() {
// initialize RF69 with default settings // initialize RF69 with default settings
Serial.print(F("Initializing ... ")); Serial.print(F("Initializing ... "));
// carrier frequency: 434.0 MHz
// bit rate: 48.0 kbps
// Rx bandwidth: 125.0 kHz
// frequency deviation: 50.0 kHz
// output power: 13 dBm
// sync word: 0x2D01
int state = rf.begin(); int state = rf.begin();
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));

View file

@ -35,7 +35,7 @@ void setup() {
// Rx bandwidth: 125.0 kHz // Rx bandwidth: 125.0 kHz
// frequency deviation: 50.0 kHz // frequency deviation: 50.0 kHz
// output power: 13 dBm // output power: 13 dBm
// sync word: 0x2D 0x01 // sync word: 0x2D01
int state = rf1.begin(); int state = rf1.begin();
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));
@ -52,7 +52,7 @@ void setup() {
// Rx bandwidth: 250.0 kHz // Rx bandwidth: 250.0 kHz
// frequency deviation: 60.0 kHz // frequency deviation: 60.0 kHz
// output power: 17 dBm // output power: 17 dBm
// sync word: 0x2D 0x01 // sync word: 0x2D01
state = rf1.begin(868.0, 300.0, 250.0, 60.0, 17); state = rf1.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!"));
@ -107,7 +107,7 @@ void setup() {
// up to 8 bytes can be set as sync word // up to 8 bytes can be set as sync word
// NOTE: sync word must not conatin any zero bytes // NOTE: sync word must not conatin any zero bytes
// set sync word to 0x01 0x23 0x45 0x67 0x89 0xAB 0xCD 0xEF // set sync word to 0x0123456789ABCDEF
uint8_t syncWord[] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF}; uint8_t syncWord[] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF};
if (rf1.setSyncWord(syncWord, 8) == ERR_INVALID_SYNC_WORD) { if (rf1.setSyncWord(syncWord, 8) == ERR_INVALID_SYNC_WORD) {
Serial.println(F("[RF69] Selected sync word is invalid for this module!")); Serial.println(F("[RF69] Selected sync word is invalid for this module!"));

View file

@ -20,7 +20,7 @@ void setup() {
// Rx bandwidth: 125.0 kHz // Rx bandwidth: 125.0 kHz
// frequency deviation: 50.0 kHz // frequency deviation: 50.0 kHz
// output power: 13 dBm // output power: 13 dBm
// sync word: 0x2D 0x01 // sync word: 0x2D01
int state = rf.begin(); int state = rf.begin();
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));

View file

@ -22,7 +22,7 @@ void setup() {
// Rx bandwidth: 125.0 kHz // Rx bandwidth: 125.0 kHz
// frequency deviation: 50.0 kHz // frequency deviation: 50.0 kHz
// output power: 13 dBm // output power: 13 dBm
// sync word: 0x2D 0x01 // sync word: 0x2D01
int state = rf.begin(); int state = rf.begin();
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));

View file

@ -24,7 +24,7 @@ void setup() {
// Rx bandwidth: 125.0 kHz // Rx bandwidth: 125.0 kHz
// frequency deviation: 50.0 kHz // frequency deviation: 50.0 kHz
// output power: 13 dBm // output power: 13 dBm
// sync word: 0x2D 0x01 // sync word: 0x2D01
int state = rf.begin(); int state = rf.begin();
if (state == ERR_NONE) { if (state == ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));