DASD
INPUTS.h@0:2abe3b8113cc, 2017-01-21 (annotated)
- Committer:
- Paaranoja
- Date:
- Sat Jan 21 15:59:21 2017 +0000
- Revision:
- 0:2abe3b8113cc
DWE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Paaranoja | 0:2abe3b8113cc | 1 | #ifndef INPUTS_H |
Paaranoja | 0:2abe3b8113cc | 2 | #define INPUTS_H |
Paaranoja | 0:2abe3b8113cc | 3 | |
Paaranoja | 0:2abe3b8113cc | 4 | #include "mbed.h" |
Paaranoja | 0:2abe3b8113cc | 5 | |
Paaranoja | 0:2abe3b8113cc | 6 | class INPUTS{ |
Paaranoja | 0:2abe3b8113cc | 7 | public: |
Paaranoja | 0:2abe3b8113cc | 8 | |
Paaranoja | 0:2abe3b8113cc | 9 | INPUTS(PinName pot_hum_pin, PinName pot_temp_pin); |
Paaranoja | 0:2abe3b8113cc | 10 | float get_hum_req(); |
Paaranoja | 0:2abe3b8113cc | 11 | float get_temp_req(); |
Paaranoja | 0:2abe3b8113cc | 12 | |
Paaranoja | 0:2abe3b8113cc | 13 | private: |
Paaranoja | 0:2abe3b8113cc | 14 | AnalogIn pot_vlaga; |
Paaranoja | 0:2abe3b8113cc | 15 | AnalogIn pot_temp; |
Paaranoja | 0:2abe3b8113cc | 16 | float req_hum, req_temp; |
Paaranoja | 0:2abe3b8113cc | 17 | |
Paaranoja | 0:2abe3b8113cc | 18 | }; |
Paaranoja | 0:2abe3b8113cc | 19 | #endif |