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@0:88d3b9015f7c, 2018-02-26 (annotated)
- Committer:
- bertgereels
- Date:
- Mon Feb 26 11:25:59 2018 +0000
- Revision:
- 0:88d3b9015f7c
- Child:
- 1:b5c534165dfe
First Commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bertgereels | 0:88d3b9015f7c | 1 | #include "mbed.h" |
bertgereels | 0:88d3b9015f7c | 2 | #pragma once |
bertgereels | 0:88d3b9015f7c | 3 | |
bertgereels | 0:88d3b9015f7c | 4 | namespace ProjectOne{ |
bertgereels | 0:88d3b9015f7c | 5 | |
bertgereels | 0:88d3b9015f7c | 6 | class Potentiometer{ |
bertgereels | 0:88d3b9015f7c | 7 | public: |
bertgereels | 0:88d3b9015f7c | 8 | Potentiometer(PinName analogPin=p19); |
bertgereels | 0:88d3b9015f7c | 9 | int getPotValue(void); |
bertgereels | 0:88d3b9015f7c | 10 | private: |
bertgereels | 0:88d3b9015f7c | 11 | AnalogIn pot1; |
bertgereels | 0:88d3b9015f7c | 12 | }; |
bertgereels | 0:88d3b9015f7c | 13 | }; |