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:
0:88d3b9015f7c
Child:
1:b5c534165dfe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/potentiometer.cpp	Mon Feb 26 11:25:59 2018 +0000
@@ -0,0 +1,13 @@
+#include "potentiometer.h"
+
+namespace ProjectOne{
+    
+    Potentiometer::Potentiometer(PinName analogPin) : pot1(analogPin){
+        
+    }
+    
+    int Potentiometer::getPotValue(void){
+        return pot1.read_u16();
+    }
+
+}
\ No newline at end of file