Fixed settings examples
This commit is contained in:
parent
4f70c67175
commit
3d95e171f7
4 changed files with 32 additions and 8 deletions
|
@ -24,9 +24,15 @@
|
||||||
// GDO2 pin: 3
|
// GDO2 pin: 3
|
||||||
CC1101 cc1 = new Module(10, 2, 3);
|
CC1101 cc1 = new Module(10, 2, 3);
|
||||||
|
|
||||||
|
// second CC1101 has different connections:
|
||||||
|
// NSS pin: 9
|
||||||
|
// GDO0 pin: 4
|
||||||
|
// GDO2 pin: 5
|
||||||
|
CC1101 cc2 = new Module(9, 4, 5);
|
||||||
|
|
||||||
// or using RadioShield
|
// or using RadioShield
|
||||||
// https://github.com/jgromes/RadioShield
|
// https://github.com/jgromes/RadioShield
|
||||||
CC1101 cc2 = RadioShield.ModuleB;
|
//CC1101 cc3 = RadioShield.ModuleB;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
|
@ -24,9 +24,15 @@
|
||||||
// DIO1 pin: 3
|
// DIO1 pin: 3
|
||||||
RF69 rf1 = new Module(10, 2, 3);
|
RF69 rf1 = new Module(10, 2, 3);
|
||||||
|
|
||||||
|
// second CC1101 has different connections:
|
||||||
|
// NSS pin: 9
|
||||||
|
// DIO0 pin: 4
|
||||||
|
// DIO1 pin: 5
|
||||||
|
RF69 rf2 = new Module(9, 4, 5);
|
||||||
|
|
||||||
// or using RadioShield
|
// or using RadioShield
|
||||||
// https://github.com/jgromes/RadioShield
|
// https://github.com/jgromes/RadioShield
|
||||||
RF69 rf2 = RadioShield.ModuleB;
|
//RF69 rf3 = RadioShield.ModuleB;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
|
@ -31,9 +31,16 @@
|
||||||
// BUSY pin: 9
|
// BUSY pin: 9
|
||||||
SX1262 loraSX1262 = new Module(10, 2, 3, 9);
|
SX1262 loraSX1262 = new Module(10, 2, 3, 9);
|
||||||
|
|
||||||
|
// SX12628 has different connections:
|
||||||
|
// NSS pin: 8
|
||||||
|
// DIO1 pin: 4
|
||||||
|
// DIO2 pin: 5
|
||||||
|
// BUSY pin: 6
|
||||||
|
SX1268 loraSX1268 = new Module(8, 4, 5, 6);
|
||||||
|
|
||||||
// or using RadioShield
|
// or using RadioShield
|
||||||
// https://github.com/jgromes/RadioShield
|
// https://github.com/jgromes/RadioShield
|
||||||
SX1268 loraSX1268 = RadioShield.ModuleB;
|
//SX1261 loraSX1261 = RadioShield.ModuleB;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
|
@ -22,14 +22,19 @@
|
||||||
|
|
||||||
// SX1278 has the following connections:
|
// SX1278 has the following connections:
|
||||||
// NSS pin: 10
|
// NSS pin: 10
|
||||||
// DIO1 pin: 2
|
// DIO0 pin: 2
|
||||||
// DIO2 pin: 3
|
// DIO1 pin: 3
|
||||||
// BUSY pin: 9
|
SX1278 loraSX1278 = new Module(10, 2, 3);
|
||||||
SX1278 loraSX1278 = new Module(10, 2, 3, 9);
|
|
||||||
|
// SX1272 has different connections:
|
||||||
|
// NSS pin: 9
|
||||||
|
// DIO0 pin: 4
|
||||||
|
// DIO1 pin: 5
|
||||||
|
SX1272 loraSX1272 = new Module(9, 4, 5);
|
||||||
|
|
||||||
// or using RadioShield
|
// or using RadioShield
|
||||||
// https://github.com/jgromes/RadioShield
|
// https://github.com/jgromes/RadioShield
|
||||||
SX1272 loraSX1272 = RadioShield.ModuleB;
|
//SX1276 loraSX1276 = RadioShield.ModuleB;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
Loading…
Add table
Reference in a new issue