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.
Procedure.cpp
- Committer:
- mariosimaremare
- Date:
- 2016-06-22
- Revision:
- 12:7a48b90b493e
- Parent:
- 7:46e65aeb4df2
- Child:
- 15:e112bab9aa2f
File content as of revision 12:7a48b90b493e:
/* * G3: WATERPLAY */ #include "Procedure.h" Procedure::Procedure( Printer &printer, DigitalIn &button ): _printer(printer), _button(button) { } int Procedure::proceed() { int number_of_procedure = 15; char* procedures[] = { "01. Check the water tank.", "02. Check salt reservoir.", "03. Check water reservoir.", "04. Check salinity syringe.", "05. Check water syringe", "06. Check salinity valve", "07. Check water valve", "08. Check salinity pipe", "09. Check water pipe", "10. Check temperature sensor", "11. Check salinity sensor", "12. Check proximity sensor", "13. Check thermostat", "14. Check stir station", "15. Check voltages" }; for(int counter = 0; counter < number_of_procedure;){ _printer.toBothln(procedures[counter]); if (_button == 1){ counter++; } wait(1); } return(1); }