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_PWM_simple by
Revision 9:6f92125f8361, committed 2017-02-03
- Comitter:
- annalou
- Date:
- Fri Feb 03 21:48:45 2017 +0000
- Parent:
- 8:ea818c9220fc
- Commit message:
- AMart_SSD447_hw3.2;
Changed in this revision
SLCD.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ea818c9220fc -r 6f92125f8361 SLCD.lib --- a/SLCD.lib Mon Jan 25 16:10:38 2016 +0000 +++ b/SLCD.lib Fri Feb 03 21:48:45 2017 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Sissors/code/SLCD/#ef2b3b7f1b01 +https://developer.mbed.org/users/annalou/code/SLCD/#2a195af40128
diff -r ea818c9220fc -r 6f92125f8361 main.cpp --- a/main.cpp Mon Jan 25 16:10:38 2016 +0000 +++ b/main.cpp Fri Feb 03 21:48:45 2017 +0000 @@ -36,13 +36,14 @@ while(true) { if (LEDTimer.read_ms() > timeToChangeDF){ // check for timer time out transtion lightData = (1.0 - LightSensor.read()); // show as increasiing with increasing intensity + if(lightData >= 0.0 && lightData <= 1000.0){ greenColor.write(1.0- lightData); redColor.write(1.0-lightData); sprintf(lcdData,"%4.3f",lightData); LCDMess(lcdData); pc.printf("%4.3f\r\n",lightData); timeToChangeDF = DATATIME; - LEDTimer.reset(); + LEDTimer.reset();} } }// emd while }