eka sinambela
/
TextLCD_Inizialization
ok
Fork of TextLCD_HelloWorld by
main.cpp
- Committer:
- ekasinambela
- Date:
- 2016-06-22
- Revision:
- 3:3984ad07b952
- Parent:
- 2:ad0b044d0a10
File content as of revision 3:3984ad07b952:
// Hello World! for the TextLCD #include "mbed.h" #include "TextLCD.h" TextLCD lcd(p19, p20, p21, p22, p23, p24); // rs, e, d4-d7 DigitalIn switchinput(p7); int main() { int message=1; while (message<8){ if (switchinput==1){ message++; wait(2); } if (message==1){lcd.printf("Check the water tank \n");} if (message==2){lcd.printf("Check the solution tank \n");} if (message==3){lcd.printf("Check the water tube \n");} if (message==4){lcd.printf("Check the salinity tube \n");} if (message==5){lcd.printf("Check the valves position \n");} if (message==6){lcd.printf("Check the sirenge \n");} if (message==7){lcd.printf("Check the sensor position \n");} if (message==8){lcd.printf("Check the thermostat \n");} } lcd.printf("Done, System will start in 2 sec \n"); wait(2); }