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 kl46z_btn_slider_toSerial by
Diff: main.cpp
- Revision:
- 8:431c6c45db8b
- Parent:
- 7:8f64ad5334ca
--- 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);
