[SSTV] Added links to default config wiki page
This commit is contained in:
parent
92ded01234
commit
ffe535c873
2 changed files with 20 additions and 27 deletions
|
@ -25,6 +25,9 @@
|
||||||
lower speed modes such as Wrasse,
|
lower speed modes such as Wrasse,
|
||||||
Scottie1 or Martin1 are recommended.
|
Scottie1 or Martin1 are recommended.
|
||||||
|
|
||||||
|
For default module settings, see the wiki page
|
||||||
|
https://github.com/jgromes/RadioLib/wiki/Default-configuration
|
||||||
|
|
||||||
For full API reference, see the GitHub Pages
|
For full API reference, see the GitHub Pages
|
||||||
https://jgromes.github.io/RadioLib/
|
https://jgromes.github.io/RadioLib/
|
||||||
*/
|
*/
|
||||||
|
@ -37,14 +40,14 @@
|
||||||
// DIO0 pin: 2
|
// DIO0 pin: 2
|
||||||
// RESET pin: 9
|
// RESET pin: 9
|
||||||
// DIO1 pin: 3
|
// DIO1 pin: 3
|
||||||
SX1278 fsk = new Module(10, 2, 9, 3);
|
SX1278 radio = new Module(10, 2, 9, 3);
|
||||||
|
|
||||||
// or using RadioShield
|
// or using RadioShield
|
||||||
// https://github.com/jgromes/RadioShield
|
// https://github.com/jgromes/RadioShield
|
||||||
//SX1278 fsk = RadioShield.ModuleA;
|
//SX1278 radio = RadioShield.ModuleA;
|
||||||
|
|
||||||
// create SSTV client instance using the FSK module
|
// create SSTV client instance using the FSK module
|
||||||
SSTVClient sstv(&fsk);
|
SSTVClient sstv(&radio);
|
||||||
|
|
||||||
// test "image" - actually just a single 320px line
|
// test "image" - actually just a single 320px line
|
||||||
// will be sent over and over again, to create vertical color stripes at the receiver
|
// will be sent over and over again, to create vertical color stripes at the receiver
|
||||||
|
@ -85,16 +88,9 @@ uint32_t line[320] = {
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
||||||
// initialize SX1278
|
// initialize SX1278 with default settings
|
||||||
Serial.print(F("[SX1278] Initializing ... "));
|
Serial.print(F("[SX1278] Initializing ... "));
|
||||||
// carrier frequency: 434.0 MHz
|
int state = radio.beginFSK();
|
||||||
// bit rate: 48.0 kbps
|
|
||||||
// frequency deviation: 50.0 kHz
|
|
||||||
// Rx bandwidth: 125.0 kHz
|
|
||||||
// output power: 13 dBm
|
|
||||||
// current limit: 100 mA
|
|
||||||
// sync word: 0x2D 0x01
|
|
||||||
int state = fsk.beginFSK();
|
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
@ -105,7 +101,7 @@ void setup() {
|
||||||
|
|
||||||
// when using one of the non-LoRa modules for SSTV
|
// when using one of the non-LoRa modules for SSTV
|
||||||
// (RF69, SX1231 etc.), use the basic begin() method
|
// (RF69, SX1231 etc.), use the basic begin() method
|
||||||
// int state = fsk.begin();
|
// int state = radio.begin();
|
||||||
|
|
||||||
// initialize SSTV client
|
// initialize SSTV client
|
||||||
Serial.print(F("[SSTV] Initializing ... "));
|
Serial.print(F("[SSTV] Initializing ... "));
|
||||||
|
@ -152,7 +148,7 @@ void loop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// turn off transmitter
|
// turn off transmitter
|
||||||
fsk.standby();
|
radio.standby();
|
||||||
|
|
||||||
Serial.println(F("done!"));
|
Serial.println(F("done!"));
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
lower speed modes such as Wrasse,
|
lower speed modes such as Wrasse,
|
||||||
Scottie1 or Martin1 are recommended.
|
Scottie1 or Martin1 are recommended.
|
||||||
|
|
||||||
|
For default module settings, see the wiki page
|
||||||
|
https://github.com/jgromes/RadioLib/wiki/Default-configuration
|
||||||
|
|
||||||
For full API reference, see the GitHub Pages
|
For full API reference, see the GitHub Pages
|
||||||
https://jgromes.github.io/RadioLib/
|
https://jgromes.github.io/RadioLib/
|
||||||
*/
|
*/
|
||||||
|
@ -32,15 +35,15 @@
|
||||||
// DIO0 pin: 2
|
// DIO0 pin: 2
|
||||||
// RESET pin: 9
|
// RESET pin: 9
|
||||||
// DIO1 pin: 3
|
// DIO1 pin: 3
|
||||||
SX1278 fsk = new Module(10, 2, 9, 3);
|
SX1278 radio = new Module(10, 2, 9, 3);
|
||||||
|
|
||||||
// or using RadioShield
|
// or using RadioShield
|
||||||
// https://github.com/jgromes/RadioShield
|
// https://github.com/jgromes/RadioShield
|
||||||
//SX1278 fsk = RadioShield.ModuleA;
|
//SX1278 radio = RadioShield.ModuleA;
|
||||||
|
|
||||||
// create AFSK client instance using the FSK module
|
// create AFSK client instance using the FSK module
|
||||||
// pin 5 is connected to SX1278 DIO2
|
// pin 5 is connected to SX1278 DIO2
|
||||||
AFSKClient audio(&fsk, 5);
|
AFSKClient audio(&radio, 5);
|
||||||
|
|
||||||
// create SSTV client instance using the AFSK instance
|
// create SSTV client instance using the AFSK instance
|
||||||
SSTVClient sstv(&audio);
|
SSTVClient sstv(&audio);
|
||||||
|
@ -84,15 +87,9 @@ uint32_t line[320] = {
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
||||||
// initialize SX1278
|
// initialize SX1278 with default settings
|
||||||
Serial.print(F("[SX1278] Initializing ... "));
|
Serial.print(F("[SX1278] Initializing ... "));
|
||||||
// carrier frequency: 434.0 MHz
|
int state = radio.beginFSK();
|
||||||
// bit rate: 48.0 kbps
|
|
||||||
// frequency deviation: 50.0 kHz
|
|
||||||
// Rx bandwidth: 125.0 kHz
|
|
||||||
// output power: 13 dBm
|
|
||||||
// current limit: 100 mA
|
|
||||||
int state = fsk.beginFSK();
|
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
@ -103,7 +100,7 @@ void setup() {
|
||||||
|
|
||||||
// when using one of the non-LoRa modules for SSTV
|
// when using one of the non-LoRa modules for SSTV
|
||||||
// (RF69, SX1231 etc.), use the basic begin() method
|
// (RF69, SX1231 etc.), use the basic begin() method
|
||||||
// int state = fsk.begin();
|
// int state = radio.begin();
|
||||||
|
|
||||||
// initialize SSTV client
|
// initialize SSTV client
|
||||||
Serial.print(F("[SSTV] Initializing ... "));
|
Serial.print(F("[SSTV] Initializing ... "));
|
||||||
|
@ -147,7 +144,7 @@ void loop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// turn off transmitter
|
// turn off transmitter
|
||||||
fsk.standby();
|
radio.standby();
|
||||||
|
|
||||||
Serial.println(F("done!"));
|
Serial.println(F("done!"));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue