This code holds the complete demo set for the sx1280: PingPong, PER and Ranging Outdoor demo application. >>>>> This code MUST run on the mbed library release 127 or everything will be painfully slow.
Dependencies: mbed SX1280Lib DmTftLibrary
* This code MUST run on the mbed library release 127 or everything will be painfully slow.*
Diff: Demo/DemoApplication.cpp
- Revision:
- 3:ec068b7adad5
- Parent:
- 1:dbcb3698f73a
- Child:
- 4:e9daf4ed7b4c
diff -r 8ebe57eb273a -r ec068b7adad5 Demo/DemoApplication.cpp --- a/Demo/DemoApplication.cpp Wed Mar 15 16:03:36 2017 +0000 +++ b/Demo/DemoApplication.cpp Mon Mar 27 17:56:04 2017 +0000 @@ -68,16 +68,6 @@ const uint32_t RefreshScreenDelayMs = 300; // in ms /*! - * \brief Backup registers for patchRAM - */ -static uint8_t BackupReg_1 = 0x00; -static uint8_t BackupReg_2 = 0x00; -static uint8_t BackupReg_3 = 0x00; -static uint8_t BackupReg_4 = 0x00; -static uint8_t BackupReg_5 = 0x00; -static uint8_t BackupReg_6 = 0x00; - -/*! * \brief Buffer and its size */ uint8_t BufferSize = BUFFER_SIZE; @@ -1420,13 +1410,6 @@ Radio.Init( ); - Radio.ReadRegister( 0x0A08, &BackupReg_1, 1 ); - Radio.ReadRegister( 0x0A07, &BackupReg_2, 1 ); - Radio.ReadRegister( 0x0A23, &BackupReg_3, 1 ); - Radio.ReadRegister( 0x0A41, &BackupReg_4, 1 ); - Radio.ReadRegister( 0x0A42, &BackupReg_5, 1 ); - Radio.ReadRegister( 0x0A43, &BackupReg_6, 1 ); - // Can also be set in LDO mode but consume more power Radio.SetRegulatorMode( ( RadioRegulatorModes_t )Eeprom.EepromData.DemoSettings.RadioPowerMode ); Radio.SetStandby( STDBY_RC );