[SX126x] Added note about regulator mode to examples
This commit is contained in:
parent
d25491d945
commit
05313b01c6
7 changed files with 8 additions and 1 deletions
|
@ -40,6 +40,7 @@ void setup() {
|
||||||
// current limit: 60 mA
|
// current limit: 60 mA
|
||||||
// preamble length: 8 symbols
|
// preamble length: 8 symbols
|
||||||
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
||||||
|
// regulator: DC-DC (set to true to use LDO)
|
||||||
// CRC: enabled
|
// CRC: enabled
|
||||||
int state = lora.begin();
|
int state = lora.begin();
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
|
|
|
@ -41,6 +41,7 @@ void setup() {
|
||||||
// preamble length: 16 bits
|
// preamble length: 16 bits
|
||||||
// data shaping: Gaussian, BT = 0.5
|
// data shaping: Gaussian, BT = 0.5
|
||||||
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
||||||
|
// regulator: DC-DC (set to true to use LDO)
|
||||||
// sync word: 0x2D 0x01
|
// sync word: 0x2D 0x01
|
||||||
// CRC: enabled, CRC16 (CCIT)
|
// CRC: enabled, CRC16 (CCIT)
|
||||||
int state = fsk.beginFSK();
|
int state = fsk.beginFSK();
|
||||||
|
|
|
@ -45,6 +45,7 @@ void setup() {
|
||||||
// current limit: 60 mA
|
// current limit: 60 mA
|
||||||
// preamble length: 8 symbols
|
// preamble length: 8 symbols
|
||||||
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
||||||
|
// regulator: DC-DC (set to true to use LDO)
|
||||||
// CRC: enabled
|
// CRC: enabled
|
||||||
int state = lora.begin();
|
int state = lora.begin();
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
|
|
|
@ -46,6 +46,7 @@ void setup() {
|
||||||
// current limit: 60 mA
|
// current limit: 60 mA
|
||||||
// preamble length: 8 symbols
|
// preamble length: 8 symbols
|
||||||
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
||||||
|
// regulator: DC-DC (set to true to use LDO)
|
||||||
// CRC: enabled
|
// CRC: enabled
|
||||||
int state = lora.begin();
|
int state = lora.begin();
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
|
@ -119,7 +120,7 @@ void loop() {
|
||||||
// you can also read received data as byte array
|
// you can also read received data as byte array
|
||||||
/*
|
/*
|
||||||
byte byteArr[8];
|
byte byteArr[8];
|
||||||
int state = lora.receive(byteArr, 8);
|
int state = lora.readData(byteArr, 8);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
|
|
|
@ -56,6 +56,7 @@ void setup() {
|
||||||
// current limit: 60 mA
|
// current limit: 60 mA
|
||||||
// preamble length: 8 symbols
|
// preamble length: 8 symbols
|
||||||
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
||||||
|
// regulator: DC-DC (set to true to use LDO)
|
||||||
// CRC: enabled
|
// CRC: enabled
|
||||||
int state = loraSX1262.begin();
|
int state = loraSX1262.begin();
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
|
|
|
@ -41,6 +41,7 @@ void setup() {
|
||||||
// current limit: 60 mA
|
// current limit: 60 mA
|
||||||
// preamble length: 8 symbols
|
// preamble length: 8 symbols
|
||||||
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
||||||
|
// regulator: DC-DC (set to true to use LDO)
|
||||||
// CRC: enabled
|
// CRC: enabled
|
||||||
int state = lora.begin();
|
int state = lora.begin();
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
|
|
|
@ -41,6 +41,7 @@ void setup() {
|
||||||
// current limit: 60 mA
|
// current limit: 60 mA
|
||||||
// preamble length: 8 symbols
|
// preamble length: 8 symbols
|
||||||
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
// TCXO voltage: 1.6 V (set to 0 to not use TCXO)
|
||||||
|
// regulator: DC-DC (set to true to use LDO)
|
||||||
// CRC: enabled
|
// CRC: enabled
|
||||||
int state = lora.begin();
|
int state = lora.begin();
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue