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.
Revision 1:ff9797f5be2c, committed 2018-01-30
- Comitter:
- Nydrel
- Date:
- Tue Jan 30 22:42:11 2018 +0000
- Parent:
- 0:02946956d93e
- Commit message:
- Changed main while loop -- inverted redOn, blueOn, greenOn
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jan 30 22:06:06 2018 +0000
+++ b/main.cpp Tue Jan 30 22:42:11 2018 +0000
@@ -55,9 +55,9 @@
pb2.setSampleFrequency();
while(1) {
- redOn = switchInputRed;
- blueOn = switchInputBlue;
- greenOn = switchInputGreen;
+ redOn = !switchInputRed;
+ blueOn = !switchInputBlue;
+ greenOn = !switchInputGreen;
myRGBled.write(illuminateRed,illuminateGreen,illuminateBlue);
wait(.1);
}