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 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;