Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed LoRaWAN-lib SX1272Liby
Fork of frdm_LoRa_Connect_Woodstream_Demo_tjm by
Diff: app/main.cpp
- Revision:
- 3:b93a0cb03083
- Parent:
- 2:a2d476f1066e
- Child:
- 4:35c4373393c3
--- 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;
