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 blink_kl46z by
Revision 2:c016448d89b2, committed 2014-09-05
- Comitter:
- scohennm
- Date:
- Fri Sep 05 23:37:33 2014 +0000
- Parent:
- 1:51f8c2b04ce2
- Child:
- 3:64e28ee5719b
- Commit message:
- Moved location of PWM frequencies
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {
