UART Command Parser Time Manager Data Store for SD Card for stm32l476 [it's not Licensed as BSD/GPLx]

Dependencies:   mbed SDFileSystem

Revision:
18:f0027b61bc08
Parent:
15:35f01ee28b44
Child:
19:36072b9b79f3
--- a/main.cpp	Mon Jun 10 23:50:04 2019 +0000
+++ b/main.cpp	Fri Jun 14 00:21:09 2019 +0000
@@ -70,14 +70,22 @@
     } OfflineMode;
     
     DigitalOut myled(PB_7);
+    DigitalOut ledY(PC_2);
+    DigitalOut ledG(PC_3);
+
     DigitalIn btn(USER_BUTTON);
     OfflineMode state = OFFLINE_MODE_READY;
     int blinky = 0;
     myled = blinky;
+    ledG = blinky;
+    ledY = 0;
+
     while(1) {
         switch(state) {
         case OFFLINE_MODE_READY:
             myled = blinky;
+            ledG = blinky;
+
             if (btn == 0) {
                 uartOn = false;
                 pCP->parse(":0 RRP 0010");
@@ -90,6 +98,8 @@
             break;        
         case OFFLINE_MODE_RUN:
             myled = blinky;
+            ledG = blinky;
+
             if (pCP->parse(":0 CPS 0000") == 0) {
                 pCP->parse(":0 SDE 0000");
                 state = OFFLINE_MODE_END;
@@ -99,6 +109,8 @@
         case OFFLINE_MODE_END:
         default:
             myled = 1;
+            ledG = 1;
+
             wait(5);
             break;
         }