[RTTY] Updated examples

This commit is contained in:
jgromes 2019-06-02 15:03:02 +02:00
parent a49f1da093
commit ff6e87a0dd

View file

@ -10,13 +10,24 @@
- SX1231 - SX1231
- CC1101 - CC1101
- SX126x - SX126x
- nRF24
For full API reference, see the GitHub Pages
https://jgromes.github.io/RadioLib/
*/ */
// include the library // include the library
#include <RadioLib.h> #include <RadioLib.h>
// SX1278 module is in slot A on the shield // SX1278 has the following connections:
SX1278 fsk = RadioShield.ModuleA; // NSS pin: 10
// DIO0 pin: 2
// DIO1 pin: 3
SX1278 fsk = new Module(10, 2, 3);
// or using RadioShield
// https://github.com/jgromes/RadioShield
//SX1278 fsk = RadioShield.ModuleA;
// create RTTY client instance using the FSK module // create RTTY client instance using the FSK module
RTTYClient rtty(&fsk); RTTYClient rtty(&fsk);