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: AlarmController.h
- Revision:
- 20:521f795ea9d7
- Parent:
- 19:ee89eabe1fa2
- Child:
- 27:4f73f754fdc9
--- a/AlarmController.h Mon Jun 13 12:33:52 2016 +0000 +++ b/AlarmController.h Mon Jun 13 12:51:19 2016 +0000 @@ -13,8 +13,10 @@ : Controller(threaded, interval_ms) { this->temp = temp; this->salt = salt; - this->proximity = proximity; - this->error = false; + this->proximity = proximity; + this->error = false; + this->tempiscrit = false; + this->saltiscrit = false; } virtual void update(); @@ -24,6 +26,10 @@ bool is_error(); char *get_error_message(); + + void buzzOnce(); + void raiseAlarmTemp(bool); + void raiseAlarmSalt(bool); private: @@ -35,6 +41,8 @@ char *error_msg; void activate_buzzer(); + bool tempiscrit; + bool saltiscrit; };