Projectlab Elektronica-ICT KULeuven

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

werking.pdf

Revision:
1:635e76c52151
Child:
3:344115c04cd0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Potentiometer.cpp	Sun Mar 16 15:08:10 2014 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "Potentiometer.h"
+
+Potentiometer::Potentiometer()
+{
+    potentiometer = new AnalogIn(p15);
+}
+
+int Potentiometer::getPotentiometer()
+{
+    int returnvalue = (int) (potentiometer->read()*100);
+    return returnvalue;
+}
\ No newline at end of file