Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.

Dependencies:   C12832 LM75B mbed EthernetInterface mbed-rtos

Revision:
1:b5c534165dfe
Parent:
0:88d3b9015f7c
--- a/potentiometer.cpp	Mon Feb 26 11:25:59 2018 +0000
+++ b/potentiometer.cpp	Wed Mar 14 07:59:21 2018 +0000
@@ -6,8 +6,8 @@
         
     }
     
-    int Potentiometer::getPotValue(void){
-        return pot1.read_u16();
+    float Potentiometer::getPotValue(void){
+        return pot1.read() * 255;
     }
 
 }
\ No newline at end of file