Keisha Brathwaite / Mbed 2 deprecated KBrat-SSD645-HW-1_1

Dependencies:   SLCD TSI mbed

Fork of kl46z_btn_slider_toSerial by Stanley Cohen

Files at this revision

API Documentation at this revision

Comitter:
tisbrat
Date:
Mon Jan 23 15:47:30 2017 +0000
Parent:
7:8f64ad5334ca
Commit message:
KBrat-SSD645-HW-1_1

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8f64ad5334ca -r 431c6c45db8b main.cpp
--- a/main.cpp	Mon Oct 12 03:19:22 2015 +0000
+++ b/main.cpp	Mon Jan 23 15:47:30 2017 +0000
@@ -48,6 +48,7 @@
 
 // --------------------------------
  int main() {
+    //float sliderValue = 0.0;
     float sliderValue = 0.0;
     
     pc.printf(PROGNAME);
@@ -71,7 +72,8 @@
             // Only do stuff with it if it's a new value or if it's not zero
             if(newSliderValue > 0.0 && newSliderValue != sliderValue) {
                 sliderValue = newSliderValue;
-                sprintf (lcdData,"%4.3f", sliderValue);  // Just to make things user readable
+                //sprintf (lcdData,"%4.3f", sliderValue);  // Just to make things user readable
+                sprintf (lcdData,"%4.3f", sliderValue+1000);  // Just to make things user readable
                 
                 LCDMessNoDwell(lcdData);
                 pc.printf("slider: %4.3f\r\n", sliderValue);