Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.
Dependencies: C12832 LM75B mbed EthernetInterface mbed-rtos
potentiometer.cpp
- Committer:
- bertgereels
- Date:
- 2018-03-23
- Revision:
- 3:538e17979246
- Parent:
- 1:b5c534165dfe
File content as of revision 3:538e17979246:
#include "potentiometer.h" namespace ProjectOne{ Potentiometer::Potentiometer(PinName analogPin) : pot1(analogPin){ } float Potentiometer::getPotValue(void){ return pot1.read() * 255; } }