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.h
- Committer:
- bertgereels
- Date:
- 2018-03-23
- Revision:
- 3:538e17979246
- Parent:
- 2:6bfe732ba6bc
File content as of revision 3:538e17979246:
#include "mbed.h" #pragma once namespace ProjectOne{ class Potentiometer{ public: /* * Constructor for Potentiometer class * @param The pins connected to the potentiometer on the application board. @return Nothing. */ Potentiometer(PinName analogPin=p19); /* * Method gets the potentiometer value. * @param Nothing. @return A float containing the potentiometer value (0...255). */ float getPotValue(void); private: AnalogIn pot1; }; };