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: 4DGL-uLCD-SE mbed
Diff: src/LEDControl.cpp
- Revision:
- 19:b2adc97f4700
- Parent:
- 18:94536dca963c
--- a/src/LEDControl.cpp Wed Oct 21 19:08:18 2015 +0000
+++ b/src/LEDControl.cpp Wed Oct 21 19:56:21 2015 +0000
@@ -24,9 +24,15 @@
pc.printf("Calculated red: %f\r\n", red);
- myRGBled1.write(red , green ,0.0); //red
- red -= .20;
- green -=.20;
- myRGBled2.write(red,green,0.0); //red
+ myRGBled2.write(red , green ,0.0); //red
+}
+
+void LEDControl::status(bool mode){
+
+ if(mode)
+ myRGBled1.write(1 , 0 ,0.0); //red
+ else
+ myRGBled1.write(0 , 1 ,0.0); //red
+
}
\ No newline at end of file
