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
LCDController.h@80:38e274c4dafa, 2016-06-24 (annotated)
- Committer:
- sbouber1
- Date:
- Fri Jun 24 13:51:42 2016 +0000
- Revision:
- 80:38e274c4dafa
- Parent:
- 65:b277b4067d4a
final
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joran | 3:d7ce3a1a34fb | 1 | #ifndef __LCDCONTROLLER_H__ |
joran | 3:d7ce3a1a34fb | 2 | #define __LCDCONTROLLER_H__ |
joran | 3:d7ce3a1a34fb | 3 | |
joran | 3:d7ce3a1a34fb | 4 | #include "mbed.h" |
joran | 3:d7ce3a1a34fb | 5 | #include "stdio.h" |
joran | 3:d7ce3a1a34fb | 6 | #include "TextLCD.h" |
sbouber1 | 65:b277b4067d4a | 7 | #include "settings.h" |
joran | 41:dce2c29f49cd | 8 | #include "PIDController.h" |
joran | 41:dce2c29f49cd | 9 | |
sbouber1 | 57:8dc3192ff150 | 10 | /** Provides methods to write to the 16x2 LCD screen */ |
joran | 6:067e999b9c6e | 11 | class LCDController { |
joran | 6:067e999b9c6e | 12 | |
joran | 6:067e999b9c6e | 13 | |
joran | 6:067e999b9c6e | 14 | public: |
joran | 6:067e999b9c6e | 15 | LCDController(); |
joran | 6:067e999b9c6e | 16 | |
sbouber1 | 52:eaddbde192f1 | 17 | /** Displays temperature / salinity values and shows if the heater is active or not */ |
sbouber1 | 52:eaddbde192f1 | 18 | static void updateScreen(float, float, PIDController *pidc); |
joran | 6:067e999b9c6e | 19 | |
sbouber1 | 52:eaddbde192f1 | 20 | /** Displays the volume in the water tank */ |
sbouber1 | 10:fd4670ec0806 | 21 | static void updateScreen(float); |
sbouber1 | 52:eaddbde192f1 | 22 | |
sbouber1 | 52:eaddbde192f1 | 23 | /** Shows the splash screen */ |
joran | 6:067e999b9c6e | 24 | static void splash(); |
sbouber1 | 52:eaddbde192f1 | 25 | |
sbouber1 | 52:eaddbde192f1 | 26 | /** Shows the given error, this is used by the AlarmController */ |
sbouber1 | 57:8dc3192ff150 | 27 | static void showError(const char *msg); |
sbouber1 | 52:eaddbde192f1 | 28 | |
sbouber1 | 52:eaddbde192f1 | 29 | /** Displays a message showing the pumps are active */ |
sbouber1 | 46:7e4c1f2ab76c | 30 | static void showPumping(); |
joran | 6:067e999b9c6e | 31 | |
joran | 6:067e999b9c6e | 32 | private: |
joran | 6:067e999b9c6e | 33 | |
sbouber1 | 35:c9261391a995 | 34 | }; |
sbouber1 | 35:c9261391a995 | 35 | |
sbouber1 | 35:c9261391a995 | 36 | #endif |