Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
Diff: TemperatureController.h
- Revision:
- 13:1323e2c0b697
- Parent:
- 10:fd4670ec0806
- Child:
- 35:c9261391a995
--- a/TemperatureController.h Sat Jun 11 10:14:40 2016 +0000
+++ b/TemperatureController.h Sat Jun 11 13:19:20 2016 +0000
@@ -17,15 +17,21 @@
virtual void update();
virtual std::string get_name();
+
+ bool is_heating();
+
+ void set_heating(bool enabled);
private:
float temperature;
+
+ bool heating;
static float readSensor();
static float analoginToCelsius(float);
- static void controlHeater();
+ void controlHeater();
static float getOffset(float);