KIK01 Proto 08

Dependencies:   AverageMCP3008 VoltageMonitor mbed-rtos mbed mcp3008

Fork of KIK01_Proto07 by Ryo Od

Revision:
34:0ef840ff8f74
Parent:
33:eac518ea0f34
Child:
35:05798de92fb5
--- 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()