sqefqsdf
Dependencies: C12832 EthernetInterface LM75B mbed-rtos mbed
Fork of app-board-LM75B by
Potentiometer.h@6:77a4c45f6416, 2017-03-23 (annotated)
- Committer:
- gimohd
- Date:
- Thu Mar 23 12:51:27 2017 +0000
- Revision:
- 6:77a4c45f6416
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gimohd | 6:77a4c45f6416 | 1 | #ifndef Potentiometer_H |
gimohd | 6:77a4c45f6416 | 2 | #define Potentiometer_H |
gimohd | 6:77a4c45f6416 | 3 | |
gimohd | 6:77a4c45f6416 | 4 | #include "mbed.h" |
gimohd | 6:77a4c45f6416 | 5 | //Class to control an RGB LED using three PWM pins |
gimohd | 6:77a4c45f6416 | 6 | class Potentiometer: AnalogIn |
gimohd | 6:77a4c45f6416 | 7 | { |
gimohd | 6:77a4c45f6416 | 8 | public: |
gimohd | 6:77a4c45f6416 | 9 | Potentiometer(PinName pin); |
gimohd | 6:77a4c45f6416 | 10 | uint8_t readValue(); |
gimohd | 6:77a4c45f6416 | 11 | private: |
gimohd | 6:77a4c45f6416 | 12 | }; |
gimohd | 6:77a4c45f6416 | 13 | |
gimohd | 6:77a4c45f6416 | 14 | #endif |