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
00001 /* 00002 * G3: WATERPLAY 00003 */ 00004 00005 #include "Procedure.h" 00006 00007 Procedure::Procedure( 00008 Printer &printer, 00009 DigitalIn &button 00010 ): 00011 _printer(printer), 00012 _button(button) 00013 { 00014 } 00015 int Procedure::proceed() 00016 { 00017 int number_of_procedure = 15; 00018 char* procedures[] = { 00019 "01. Check the water tank.", 00020 "02. Check salt reservoir.", 00021 "03. Check water reservoir.", 00022 "04. Check salinity syringe.", 00023 "05. Check water syringe", 00024 "06. Check salinity valve", 00025 "07. Check water valve", 00026 "08. Check salinity pipe", 00027 "09. Check water pipe", 00028 "10. Check temperature sensor", 00029 "11. Check salinity sensor", 00030 "12. Check proximity sensor", 00031 "13. Check thermostat", 00032 "14. Check stir station", 00033 "15. Check voltages" 00034 }; 00035 00036 for(int counter = 0; counter < number_of_procedure;){ 00037 _printer.toBothln(procedures[counter]); 00038 if (_button == 0){ 00039 counter++; 00040 } 00041 wait(1); 00042 } 00043 00044 return(1); 00045 }
Generated on Tue Jul 12 2022 19:11:49 by
1.7.2