Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AverageMCP3008 VoltageMonitor mbed-rtos mbed mcp3008
Fork of KIK01_Proto06 by
Revision 34:0ef840ff8f74, committed 2017-12-11
- Comitter:
- ryood
- Date:
- Mon Dec 11 12:19:26 2017 +0000
- Parent:
- 33:eac518ea0f34
- Commit message:
- Clean Up
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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()