sqefqsdf

Dependencies:   C12832 EthernetInterface LM75B mbed-rtos mbed

Fork of app-board-LM75B by Chris Styles

Revision:
6:77a4c45f6416
diff -r 608f2bf4d3f7 -r 77a4c45f6416 Potentiometer.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Potentiometer.cpp	Thu Mar 23 12:51:27 2017 +0000
@@ -0,0 +1,14 @@
+#include "Potentiometer.h"
+
+
+Potentiometer::Potentiometer(PinName pin) :AnalogIn(pin)
+{
+
+}
+
+uint8_t Potentiometer::readValue()
+{
+    float value = this->read();
+    return (uint8_t) 255*value;
+}
+