Potentiometers

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
eencae
Date:
Tue Feb 28 20:23:16 2017 +0000
Parent:
0:74d086537907
Commit message:
Removed int.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 74d086537907 -r d957f119593e main.cpp
--- a/main.cpp	Fri Feb 24 14:54:55 2017 +0000
+++ b/main.cpp	Tue Feb 28 20:23:16 2017 +0000
@@ -20,10 +20,8 @@
         //float pot0_val = pot0;       // short-hand 
         
         float pot0_voltage = pot0_val*3.3f;  // multiply by 3.3 to get the voltage
-        
-        int pot0_int_val = pot0.read_u16();  // can also get int in range 0 to 65,535
-        
-        printf("Pot 0 val = %.2f [%i] (%.2f V)\n",pot0_val,pot0_int_val,pot0_voltage);
+                
+        printf("Pot 0 val = %.2f (%.2f V)\n",pot0_val,pot0_voltage);
         
         wait(0.2);