KBrat-SSD645-HW-3_2_Q6

Dependencies:   SLCD mbed

Fork of lightsense_kl46z_PWM_simple by Stanley Cohen

Files at this revision

API Documentation at this revision

Comitter:
tisbrat
Date:
Mon Feb 06 16:44:16 2017 +0000
Parent:
8:ea818c9220fc
Commit message:
KBrat-SSD645-HW-3_2_Q6

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ea818c9220fc -r cc9cde5252e0 main.cpp
--- a/main.cpp	Mon Jan 25 16:10:38 2016 +0000
+++ b/main.cpp	Mon Feb 06 16:44:16 2017 +0000
@@ -38,7 +38,8 @@
             lightData = (1.0 - LightSensor.read()); // show as increasiing with increasing intensity
             greenColor.write(1.0- lightData);
             redColor.write(1.0-lightData);
-            sprintf(lcdData,"%4.3f",lightData);
+            //sprintf(lcdData,"%4.3f",lightData);
+            sprintf(lcdData, "%4.0f", lightData*1000);
             LCDMess(lcdData);  
             pc.printf("%4.3f\r\n",lightData);
             timeToChangeDF = DATATIME;