Application example using LoRaWAN-lib MAC layer implementation for STM32 + SX1276 on OpenChirp
Dependencies: mbed LoRaWAN-lib SX1276Lib
Revision 13:779fef3e4573, committed 2019-09-15
- Comitter:
- nimita23
- Date:
- Sun Sep 15 17:10:06 2019 +0000
- Parent:
- 12:bf1efd688cc8
- Commit message:
- led working
Changed in this revision
app/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r bf1efd688cc8 -r 779fef3e4573 app/main.cpp --- a/app/main.cpp Fri Jun 28 20:18:15 2019 +0000 +++ b/app/main.cpp Sun Sep 15 17:10:06 2019 +0000 @@ -7,10 +7,6 @@ (C)2015 Semtech Description: LoRaMac classA device implementation - -License: Revised BSD License, see LICENSE.TXT file include in the project - -Maintainer: Miguel Luis and Gregory Cristian */ #include "mbed.h" #include "board.h" @@ -160,6 +156,9 @@ volatile bool Led2State = false; volatile bool Led2StateChanged = false; + +DigitalOut myled(PA_5, 1); + /*! * Indicates if a new packet can be sent */ @@ -574,6 +573,7 @@ if( mcpsIndication->BufferSize == 1 ) { AppLedStateOn = mcpsIndication->Buffer[0] & 0x01; + myled = 1; Led3StateChanged = true; } break;