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: aconno_I2C Lis2dh12 WatchdogTimer
Diff: common.cpp
- Revision:
- 48:64b1613941d5
- Parent:
- 34:4493c9f6d707
- Child:
- 51:9078e6928412
--- a/common.cpp	Mon Jan 21 19:43:17 2019 +0000
+++ b/common.cpp	Tue Feb 05 14:30:57 2019 +0000
@@ -12,8 +12,8 @@
         //ThisThread::sleep_for(milliseconds);
         Thread::wait(milliseconds);
         led1 = 1;
+        GLOBAL_LEDSequenceinProgress = false;
     }
-    GLOBAL_LEDSequenceinProgress = false;
 }
 void LED1blink(int count = 2, long milliseconds = 100) {
     GLOBAL_LEDSequenceinProgress = true;
@@ -30,6 +30,9 @@
     led1 = 1;
     GLOBAL_LEDSequenceinProgress = false;
 }
+void LED1blinkRTC(int count) {
+    RTCtick_ledflash_count = count;
+}
 void LED1errorCode(int pattern, int count) {
     GLOBAL_LEDSequenceinProgress = true;
     for (int i = 0; i < count; i++) {
@@ -46,5 +49,6 @@
 }
 void LED1off() {
     led1 = 1;
+    RTCtick_ledflash_count = 0;
     GLOBAL_LEDSequenceinProgress = false;
 }
\ No newline at end of file