SSD 447 - 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:
sbart
Date:
Sun Jan 22 22:12:20 2017 +0000
Parent:
7:8f64ad5334ca
Commit message:
SSD447 - 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 f7063e4ba2c2 main.cpp
--- a/main.cpp	Mon Oct 12 03:19:22 2015 +0000
+++ b/main.cpp	Sun Jan 22 22:12:20 2017 +0000
@@ -12,7 +12,7 @@
 #define RBUT PTC3
 #define DATATIME    200 //milliseconds
 #define LCDLEN      10
-#define PROGNAME "kl46z_btn_slider_toSerial\r\n"
+#define PROGNAME "kl46z_btn_slider_toSerial_noDecimal\r\n"
 
 // Cap slider interface
 SLCD slcd; //define LCD display
@@ -44,6 +44,8 @@
         slcd.Home();
         slcd.clear();
         slcd.printf(lMess);
+        
+        slcd.DP(0, false);  //Disables the decimal point in position 0
 } 
 
 // --------------------------------
@@ -52,7 +54,7 @@
     
     pc.printf(PROGNAME);
     dataTimer.start();
-    dataTimer.reset(); 
+    dataTimer.reset();
     sprintf (lcdData,"%4.3f",0.0);
     LCDMessNoDwell(lcdData);
     
@@ -71,6 +73,7 @@
             // 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
                 
                 LCDMessNoDwell(lcdData);