Projectlab Elektronica-ICT KULeuven
Dependencies: EthernetInterface TMP102 TextLCD mbed-rtos mbed
Potentiometer.cpp
- Committer:
- seppeduwe
- Date:
- 2014-03-16
- Revision:
- 3:344115c04cd0
- Parent:
- 1:635e76c52151
File content as of revision 3:344115c04cd0:
#include "mbed.h" #include "Potentiometer.h" Potentiometer::Potentiometer() { potentiometer = new AnalogIn(p15); } float Potentiometer::getPotentiometer() { return potentiometer->read(); } //Legacy code int Potentiometer::getPotentiometer255() { return (int) potentiometer->read()*255; }