A program to control an RGB LED using PWM outputs from the RenBED.
Revision 2:c9141fc3900d, committed 2016-04-15
- Comitter:
- RenBuggy
- Date:
- Fri Apr 15 08:38:19 2016 +0000
- Parent:
- 1:403bf5e66837
- Commit message:
- .;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 403bf5e66837 -r c9141fc3900d main.cpp --- a/main.cpp Fri Apr 15 08:34:55 2016 +0000 +++ b/main.cpp Fri Apr 15 08:38:19 2016 +0000 @@ -35,7 +35,7 @@ for(;;){ Red = 0.7; /* Duty cycle on red pin set to 70% so red is on 30% of the time */ Green = 0.4; - wait_ms(3000); /* wait for 3000 ms */ + wait_ms(3000); /* wait for 3000 ms (3 seconds) */ Red = 1; /* Duty cycle set to 100% to turn red off */ Blue = 0; /* Duty cycle set to 0% to turn blue fully on */ wait_ms(3000);