das
OUTS.h@0:ffef1cca62a8, 2017-01-21 (annotated)
- Committer:
- Paaranoja
- Date:
- Sat Jan 21 15:59:12 2017 +0000
- Revision:
- 0:ffef1cca62a8
SD
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Paaranoja | 0:ffef1cca62a8 | 1 | #ifndef OUTS_H |
Paaranoja | 0:ffef1cca62a8 | 2 | #define OUTS_H |
Paaranoja | 0:ffef1cca62a8 | 3 | #include "mbed.h" |
Paaranoja | 0:ffef1cca62a8 | 4 | |
Paaranoja | 0:ffef1cca62a8 | 5 | class OUTS { |
Paaranoja | 0:ffef1cca62a8 | 6 | public: |
Paaranoja | 0:ffef1cca62a8 | 7 | OUTS(PinName grijac_pin, PinName atomizer_pin, PinName grijac_led_pin, PinName atomizer_led_pin); |
Paaranoja | 0:ffef1cca62a8 | 8 | void outs_on(float senzor_temp, float senzor_hum, float pot_temp, float pot_hum); |
Paaranoja | 0:ffef1cca62a8 | 9 | |
Paaranoja | 0:ffef1cca62a8 | 10 | private: |
Paaranoja | 0:ffef1cca62a8 | 11 | void chk_hum(float senzor_hum, float pot_hum); |
Paaranoja | 0:ffef1cca62a8 | 12 | void chk_temp(float senzor_temp, float pot_temp); |
Paaranoja | 0:ffef1cca62a8 | 13 | float senzor_temp, senzor_hum, pot_temp, pot_hum; |
Paaranoja | 0:ffef1cca62a8 | 14 | DigitalOut atomizer; |
Paaranoja | 0:ffef1cca62a8 | 15 | DigitalOut grijac; |
Paaranoja | 0:ffef1cca62a8 | 16 | DigitalOut led_grijac; |
Paaranoja | 0:ffef1cca62a8 | 17 | DigitalOut led_atomizer; |
Paaranoja | 0:ffef1cca62a8 | 18 | }; |
Paaranoja | 0:ffef1cca62a8 | 19 | #endif |