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.
Fork of lightsense_kl46z_states_nowait by
Diff: main.cpp
- Revision:
- 2:c016448d89b2
- Parent:
- 1:51f8c2b04ce2
- Child:
- 3:64e28ee5719b
--- a/main.cpp Fri Sep 05 02:26:47 2014 +0000 +++ b/main.cpp Fri Sep 05 23:37:33 2014 +0000 @@ -30,8 +30,6 @@ int main() { char lcdData[LCDLEN]; - greenColor.period_ms(PWMTIME); // set the frequency of the pulse train - redColor.period_ms(PWMTIME); int rampstate = RMPUP; int numSteps; float workingDelta; @@ -39,6 +37,8 @@ pc.printf(PROGNAME); + greenColor.period_ms(PWMTIME); // set the frequency of the pulse train + redColor.period_ms(PWMTIME); workingDelta = rampDirection[rampstate]; numSteps = (int)(1.0/workingDelta); while(true) {