Program for the water play project for the course Software Testing Practical 2016 given at the VU University

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Revision:
66:133398875949
Parent:
58:b5f0c0f305ff
Child:
68:b769c0f23406
--- a/SalinityController.cpp	Mon Jun 20 10:33:11 2016 +0000
+++ b/SalinityController.cpp	Mon Jun 20 10:53:46 2016 +0000
@@ -1,6 +1,7 @@
 #include "SalinityController.h"
 
 static AnalogIn salinity_sensor(p19);
+static DigitalOut alarmled(LED2);
 
 //Read the sensor, update the local variable.
 void SalinityController::update() {
@@ -60,3 +61,8 @@
 std::string SalinityController::getName() {
     return "SalinityController";
 }
+
+void SalinityController::setLed(bool value){
+    if (value) alarmled = 1;
+    if (!value) alarmled = 0;
+}
\ No newline at end of file