Mario Simaremare
/
g3_waterplay
Salinity and temperature sensors are implemented in classes.
Thermostat.h
- Committer:
- mariosimaremare
- Date:
- 2016-06-14
- Revision:
- 2:ed17e258da0d
- Child:
- 5:4cbe44452889
File content as of revision 2:ed17e258da0d:
/* * G3: WATERPLAY */ #ifndef THERMOSTAT_H #define THERMOSTAT_H #include "mbed.h" class Thermostat { public: Thermostat( mbed::Serial &serial, PinName pin, PinName led_pin ); int on(); int off(); int react(double temperature); private: Serial &_serial; AnalogOut _analog_out; DigitalOut _led; }; #endif