
this is using the mbed os version 5-13-1
Diff: source/main-https.cpp
- Branch:
- PassingRegression
- Revision:
- 108:3c8fb2c6e7bf
- Parent:
- 107:f1a83fd41b17
- Child:
- 109:c274780ff609
--- a/source/main-https.cpp Mon May 06 16:44:40 2019 +0000 +++ b/source/main-https.cpp Mon May 06 20:18:02 2019 +0000 @@ -25,8 +25,11 @@ #include "mbed_memory_status.h" UARTService *uart; -DigitalOut alivenessLED(LED1, 0); -DigitalOut actuatedLED(LED2, 0); +//DigitalOut alivenessLED(LED1, 0); +//DigitalOut actuatedLED(LED2, 0); +DigitalOut led1(LED1); +DigitalOut led2(LED2); +DigitalOut led3(LED3); #define FILE_CODE "main" @@ -194,7 +197,7 @@ uartCharRcvCount++; if(uartCharRcvCount >= uartExpectedRcvCount) { - alivenessLED = !alivenessLED; /* Do blinky on LED1 to indicate system aliveness. */ + //alivenessLED = !alivenessLED; /* Do blinky on LED1 to indicate system aliveness. */ eventQueue.call(printUartRxResult); } } @@ -367,6 +370,23 @@ #endif } +void blinkLEDs() +{ + static int cnt =0; + cnt++; + if(cnt == 3){ + cnt = 0; + } + if(cnt==0) + led1 = !led1; + //wait(1.0); + if(cnt==1) + led2 = !led2; + //wait(1.0); + if(cnt==2) + led3 = !led3; +} + //#define DISABLE_WIFI #define DISABLE_WIFI_DEMO #define SKIP_WIFI_SCAN_DEMO @@ -527,7 +547,10 @@ print_memory_info(); //SCB->SHCSR |= 0x00070000;//Enable fault handler. //wiFiManager->runMain(); - while(1) wait(0.1); + while(1) + { + wait(0.1); + } //performFreeMemoryCheck(); //eventQueue.dispatch_forever();