Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Revision:
8:2abfdbf5a3b8
Child:
10:4dd96f046784
Child:
11:ed9539245ea0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pot/pot.cpp	Fri Nov 11 21:19:06 2016 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "pot.h"
+
+Pot::Pot(PinName _pin) : angle(_pin) {
+    
+}
+
+float Pot::get_angle(){
+    float a = angle.read()*360; 
+    return a;  
+}
\ No newline at end of file