diff --git a/examples/AFSK/AFSK_Imperial_March/AFSK_Imperial_March.ino b/examples/AFSK/AFSK_Imperial_March/AFSK_Imperial_March.ino index b749bb6e..7c850916 100644 --- a/examples/AFSK/AFSK_Imperial_March/AFSK_Imperial_March.ino +++ b/examples/AFSK/AFSK_Imperial_March/AFSK_Imperial_March.ino @@ -9,6 +9,7 @@ - SX1231 - CC1101 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -38,6 +39,7 @@ SX1278 radio = new Module(10, 2, 9, 3); // SX1231: DIO2 // CC1101: GDO2 // Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); void setup() { diff --git a/examples/AFSK/AFSK_Tone/AFSK_Tone.ino b/examples/AFSK/AFSK_Tone/AFSK_Tone.ino index e5dd0ab4..3e221226 100644 --- a/examples/AFSK/AFSK_Tone/AFSK_Tone.ino +++ b/examples/AFSK/AFSK_Tone/AFSK_Tone.ino @@ -10,6 +10,7 @@ - SX1231 - CC1101 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -36,6 +37,7 @@ SX1278 radio = new Module(10, 2, 9, 3); // SX1231: DIO2 // CC1101: GDO2 // Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); void setup() { diff --git a/examples/APRS/APRS_MicE/APRS_MicE.ino b/examples/APRS/APRS_MicE/APRS_MicE.ino index 9d8061cb..5a84d0ea 100644 --- a/examples/APRS/APRS_MicE/APRS_MicE.ino +++ b/examples/APRS/APRS_MicE/APRS_MicE.ino @@ -16,6 +16,7 @@ - CC1101 - nRF24 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -39,7 +40,14 @@ SX1278 radio = new Module(10, 2, 9, 3); //SX1278 radio = RadioShield.ModuleA; // create AFSK client instance using the FSK module -// pin 5 is connected to SX1278 DIO2 +// this requires connection to the module direct +// input pin, here connected to Arduino pin 5 +// SX127x/RFM9x: DIO2 +// RF69: DIO2 +// SX1231: DIO2 +// CC1101: GDO2 +// Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); // create AX.25 client instance using the AFSK instance diff --git a/examples/APRS/APRS_Position/APRS_Position.ino b/examples/APRS/APRS_Position/APRS_Position.ino index 2478d64b..c05ac194 100644 --- a/examples/APRS/APRS_Position/APRS_Position.ino +++ b/examples/APRS/APRS_Position/APRS_Position.ino @@ -16,6 +16,7 @@ - CC1101 - nRF24 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -39,7 +40,14 @@ SX1278 radio = new Module(10, 2, 9, 3); //SX1278 radio = RadioShield.ModuleA; // create AFSK client instance using the FSK module -// pin 5 is connected to SX1278 DIO2 +// this requires connection to the module direct +// input pin, here connected to Arduino pin 5 +// SX127x/RFM9x: DIO2 +// RF69: DIO2 +// SX1231: DIO2 +// CC1101: GDO2 +// Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); // create AX.25 client instance using the AFSK instance diff --git a/examples/AX25/AX25_Transmit_AFSK/AX25_Transmit_AFSK.ino b/examples/AX25/AX25_Transmit_AFSK/AX25_Transmit_AFSK.ino index 540dc08d..f60818c3 100644 --- a/examples/AX25/AX25_Transmit_AFSK/AX25_Transmit_AFSK.ino +++ b/examples/AX25/AX25_Transmit_AFSK/AX25_Transmit_AFSK.ino @@ -13,6 +13,7 @@ - CC1101 - nRF24 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -36,7 +37,14 @@ SX1278 radio = new Module(10, 2, 9, 3); //SX1278 radio = RadioShield.ModuleA; // create AFSK client instance using the FSK module -// pin 5 is connected to SX1278 DIO2 +// this requires connection to the module direct +// input pin, here connected to Arduino pin 5 +// SX127x/RFM9x: DIO2 +// RF69: DIO2 +// SX1231: DIO2 +// CC1101: GDO2 +// Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); // create AX.25 client instance using the AFSK instance diff --git a/examples/FSK4/FSK4_Transmit_AFSK/FSK4_Transmit_AFSK.ino b/examples/FSK4/FSK4_Transmit_AFSK/FSK4_Transmit_AFSK.ino index 73b4a704..9c320918 100644 --- a/examples/FSK4/FSK4_Transmit_AFSK/FSK4_Transmit_AFSK.ino +++ b/examples/FSK4/FSK4_Transmit_AFSK/FSK4_Transmit_AFSK.ino @@ -13,6 +13,7 @@ - SX1231 - CC1101 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -36,7 +37,14 @@ SX1278 radio = new Module(10, 2, 9, 3); //SX1278 radio = RadioShield.ModuleA; // create AFSK client instance using the FSK module -// pin 5 is connected to SX1278 DIO2 +// this requires connection to the module direct +// input pin, here connected to Arduino pin 5 +// SX127x/RFM9x: DIO2 +// RF69: DIO2 +// SX1231: DIO2 +// CC1101: GDO2 +// Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); // create FSK4 client instance using the AFSK instance @@ -81,7 +89,7 @@ void setup() { // NOTE: Unlike FSK FSK4, AFSK requires no rounding of // the frequency shift. Serial.print(F("[FSK4] Initializing ... ")); - // low ("space") frequency: 434.0 MHz + // lowest ("space") frequency: 400 Hz // frequency shift: 270 Hz // baud rate: 100 baud state = fsk4.begin(400, 270, 100); diff --git a/examples/Hellschreiber/Hellschreiber_Transmit_AFSK/Hellschreiber_Transmit_AFSK.ino b/examples/Hellschreiber/Hellschreiber_Transmit_AFSK/Hellschreiber_Transmit_AFSK.ino index 1fdff4a2..dbe267a5 100644 --- a/examples/Hellschreiber/Hellschreiber_Transmit_AFSK/Hellschreiber_Transmit_AFSK.ino +++ b/examples/Hellschreiber/Hellschreiber_Transmit_AFSK/Hellschreiber_Transmit_AFSK.ino @@ -12,6 +12,7 @@ - SX1231 - CC1101 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -35,7 +36,14 @@ SX1278 radio = new Module(10, 2, 9, 3); //SX1278 radio = RadioShield.ModuleA; // create AFSK client instance using the FSK module -// pin 5 is connected to SX1278 DIO2 +// this requires connection to the module direct +// input pin, here connected to Arduino pin 5 +// SX127x/RFM9x: DIO2 +// RF69: DIO2 +// SX1231: DIO2 +// CC1101: GDO2 +// Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); // create Hellschreiber client instance using the AFSK instance diff --git a/examples/Morse/Morse_Transmit_FM/Morse_Transmit_FM.ino b/examples/Morse/Morse_Transmit_FM/Morse_Transmit_FM.ino index b4f4b417..3ab9d08d 100644 --- a/examples/Morse/Morse_Transmit_FM/Morse_Transmit_FM.ino +++ b/examples/Morse/Morse_Transmit_FM/Morse_Transmit_FM.ino @@ -12,6 +12,7 @@ - SX1231 - CC1101 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -35,8 +36,15 @@ SX1278 radio = new Module(10, 2, 9, 3); //SX1278 radio = RadioShield.ModuleA; // create AFSK client instance using the FSK module -// pin 5 is connected to SX1278 DIO2 -AFSKClient audio(&radio, 10); +// this requires connection to the module direct +// input pin, here connected to Arduino pin 5 +// SX127x/RFM9x: DIO2 +// RF69: DIO2 +// SX1231: DIO2 +// CC1101: GDO2 +// Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 +AFSKClient audio(&radio, 5); // create Morse client instance using the AFSK instance MorseClient morse(&audio); @@ -72,17 +80,6 @@ void setup() { Serial.println(state); while(true); } - - // after that, set mode to OOK - Serial.print(F("[SX1278] Switching to OOK ... ")); - state = radio.setOOK(true); - if(state == RADIOLIB_ERR_NONE) { - Serial.println(F("success!")); - } else { - Serial.print(F("failed, code ")); - Serial.println(state); - while(true); - } } void loop() { diff --git a/examples/RTTY/RTTY_Transmit_AFSK/RTTY_Transmit_AFSK.ino b/examples/RTTY/RTTY_Transmit_AFSK/RTTY_Transmit_AFSK.ino index 58e6d8c0..c9b268cd 100644 --- a/examples/RTTY/RTTY_Transmit_AFSK/RTTY_Transmit_AFSK.ino +++ b/examples/RTTY/RTTY_Transmit_AFSK/RTTY_Transmit_AFSK.ino @@ -10,6 +10,7 @@ - SX1231 - CC1101 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) For default module settings, see the wiki page https://github.com/jgromes/RadioLib/wiki/Default-configuration @@ -33,7 +34,14 @@ SX1278 radio = new Module(10, 2, 9, 3); //SX1278 radio = RadioShield.ModuleA; // create AFSK client instance using the FSK module -// pin 5 is connected to SX1278 DIO2 +// this requires connection to the module direct +// input pin, here connected to Arduino pin 5 +// SX127x/RFM9x: DIO2 +// RF69: DIO2 +// SX1231: DIO2 +// CC1101: GDO2 +// Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); // create RTTY client instance using the AFSK instance diff --git a/examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino b/examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino index 4719adaf..924522b1 100644 --- a/examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino +++ b/examples/SSTV/SSTV_Transmit_AFSK/SSTV_Transmit_AFSK.ino @@ -12,6 +12,7 @@ - SX1231 - CC1101 - Si443x/RFM2x + - SX126x/LLCC68 (only devices without TCXO!) NOTE: Some platforms (such as Arduino Uno) might not be fast enough to correctly @@ -42,7 +43,14 @@ SX1278 radio = new Module(10, 2, 9, 3); //SX1278 radio = RadioShield.ModuleA; // create AFSK client instance using the FSK module -// pin 5 is connected to SX1278 DIO2 +// this requires connection to the module direct +// input pin, here connected to Arduino pin 5 +// SX127x/RFM9x: DIO2 +// RF69: DIO2 +// SX1231: DIO2 +// CC1101: GDO2 +// Si443x/RFM2x: GPIO +// SX126x/LLCC68: DIO2 AFSKClient audio(&radio, 5); // create SSTV client instance using the AFSK instance