Potentiometers

Dependencies:   mbed

Revision:
1:d957f119593e
Parent:
0:74d086537907
--- 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);