sqefqsdf
Dependencies: C12832 EthernetInterface LM75B mbed-rtos mbed
Fork of app-board-LM75B by
Potentiometer.cpp
- Committer:
- gimohd
- Date:
- 2017-03-23
- Revision:
- 6:77a4c45f6416
File content as of revision 6:77a4c45f6416:
#include "Potentiometer.h" Potentiometer::Potentiometer(PinName pin) :AnalogIn(pin) { } uint8_t Potentiometer::readValue() { float value = this->read(); return (uint8_t) 255*value; }