first draft
Dependencies: mbed LoRaWAN-lib SX1272Liby
Fork of LoRaWAN-demo-72 by
Diff: app/main.cpp
- Revision:
- 3:b93a0cb03083
- Parent:
- 2:a2d476f1066e
- Child:
- 4:35c4373393c3
diff -r a2d476f1066e -r b93a0cb03083 app/main.cpp --- a/app/main.cpp Wed Mar 09 15:15:23 2016 +0000 +++ b/app/main.cpp Wed Mar 09 16:16:05 2016 +0000 @@ -135,6 +135,11 @@ */ static TimerEvent_t TxNextPacketTimer; +#define LED_RED PTA1 +#define LED_YEL PTA2 +DigitalOut led1(LED_RED); +DigitalOut led2(LED_YEL); + /*! * Specifies the state of the application LED */ @@ -694,6 +699,8 @@ LoRaMacCallback_t LoRaMacCallbacks; MibRequestConfirm_t mibReq; + led1 = 1; + led2 = 1; BoardInit( ); SerialDisplayInit( ); @@ -713,12 +720,14 @@ { Led1StateChanged = false; SerialDisplayUpdateLedState( 1, Led1State ); + led1 = !Led1State; } if( Led2StateChanged == true ) { Led2StateChanged = false; SerialDisplayUpdateLedState( 2, Led2State ); - } + led2 = !Led2State; + } if( Led3StateChanged == true ) { Led3StateChanged = false;