KIK01 Release
Dependencies: mcp3008 mbed mbed-rtos AverageMCP3008 VoltageMonitor
Diff: main.cpp
- Revision:
- 34:0ef840ff8f74
- Parent:
- 33:eac518ea0f34
- Child:
- 35:05798de92fb5
diff -r eac518ea0f34 -r 0ef840ff8f74 main.cpp --- a/main.cpp Mon Dec 11 05:53:59 2017 +0000 +++ b/main.cpp Mon Dec 11 12:19:26 2017 +0000 @@ -61,8 +61,8 @@ // Power Monitor AnalogIn PowerMonitorIn(PA_0); DigitalOut PowerMonitorLed(PA_15); -//VoltageMonitor PWMon(&PowerMonitorIn, PM_VDD, PM_LoThreshold, PM_HiThreshold, &PowerMonitorLed); -VoltageMonitor PWMon(&PowerMonitorIn, PM_VDD, PM_LoThreshold, PM_HiThreshold, NULL); +VoltageMonitor PWMon(&PowerMonitorIn, PM_VDD, PM_LoThreshold, PM_HiThreshold, &PowerMonitorLed); +//VoltageMonitor PWMon(&PowerMonitorIn, PM_VDD, PM_LoThreshold, PM_HiThreshold, NULL); // Sync DigitalOut SyncOut(PC_10); @@ -206,7 +206,7 @@ void syncFunction() { ticks = 0; - PowerMonitorLed = !PowerMonitorLed; + //PowerMonitorLed = !PowerMonitorLed; } int main()