mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-15 04:52:16 -04:00
Prepared EEPROM functionality
This commit is contained in:
parent
8a604f911b
commit
4d943999d5
6 changed files with 72 additions and 4 deletions
6
LoRa.cpp
6
LoRa.cpp
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <LoRa.h>
|
||||
|
||||
// registers
|
||||
// Registers
|
||||
#define REG_FIFO 0x00
|
||||
#define REG_OP_MODE 0x01
|
||||
#define REG_FRF_MSB 0x06
|
||||
|
@ -39,7 +39,7 @@
|
|||
#define REG_DIO_MAPPING_1 0x40
|
||||
#define REG_VERSION 0x42
|
||||
|
||||
// modes
|
||||
// Modes
|
||||
#define MODE_LONG_RANGE_MODE 0x80
|
||||
#define MODE_SLEEP 0x00
|
||||
#define MODE_STDBY 0x01
|
||||
|
@ -112,7 +112,7 @@ int LoRaClass::begin(long frequency)
|
|||
writeRegister(REG_MODEM_CONFIG_3, 0x04);
|
||||
|
||||
// set output power to 17 dBm
|
||||
setTxPower(17);
|
||||
setTxPower(2);
|
||||
|
||||
// put in standby mode
|
||||
idle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue