![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
chad
Dependencies: MCP23017 WattBob_TextLCD mbed-rtos mbed
Diff: main.cpp
- Revision:
- 8:0e46cf19fc45
- Parent:
- 7:71a923f423f4
- Child:
- 9:d04a313420c7
--- a/main.cpp Tue Mar 07 16:41:36 2017 +0000 +++ b/main.cpp Tue Mar 07 17:01:38 2017 +0000 @@ -32,9 +32,9 @@ AnalogIn A2_in(p16); // Analogue input to be filtered // Timer objects +Ticker tick; // Clock timer for CycExec Timer timer; // Frequency Timer -Timer tick; // Clock timer for CycExec -Timer idle; // Timer for idle states +Timer T5; // Timer for idle states // Constant Declaration const int SampFreq = 100; // Sampling Frequency @@ -53,6 +53,7 @@ int logcount = 0; // Keep track of log number +int T5_ = 0; //////////////////////////////////////////////////////////////////////////////// @@ -80,10 +81,19 @@ void CycExec() { - idle.stop(); - - if(tck % 40 = 0) // Every Second (needs offset) - + if(tck % 40 = 0){ // Every Second (needs offset) + Task1( + + + + + + + + + + +