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
Diff: potentiometer.h
- Revision:
- 0:88d3b9015f7c
- Child:
- 1:b5c534165dfe
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/potentiometer.h Mon Feb 26 11:25:59 2018 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#pragma once + +namespace ProjectOne{ + + class Potentiometer{ + public: + Potentiometer(PinName analogPin=p19); + int getPotValue(void); + private: + AnalogIn pot1; + }; +}; \ No newline at end of file