![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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@1:b5c534165dfe, 2018-03-14 (annotated)
- Committer:
- bertgereels
- Date:
- Wed Mar 14 07:59:21 2018 +0000
- Revision:
- 1:b5c534165dfe
- Parent:
- 0:88d3b9015f7c
- Child:
- 2:6bfe732ba6bc
Added slave state machine.
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 | 1:b5c534165dfe | 9 | float getPotValue(void); |
bertgereels | 0:88d3b9015f7c | 10 | private: |
bertgereels | 0:88d3b9015f7c | 11 | AnalogIn pot1; |
bertgereels | 0:88d3b9015f7c | 12 | }; |
bertgereels | 0:88d3b9015f7c | 13 | }; |