eka sinambela
/
TextLCD_Inizialization
ok
Fork of TextLCD_HelloWorld by
Diff: main.cpp
- Revision:
- 3:3984ad07b952
- Parent:
- 2:ad0b044d0a10
--- a/main.cpp Sat Dec 04 11:31:07 2010 +0000 +++ b/main.cpp Wed Jun 22 11:42:55 2016 +0000 @@ -3,8 +3,26 @@ #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7 - +TextLCD lcd(p19, p20, p21, p22, p23, p24); // rs, e, d4-d7 +DigitalIn switchinput(p7); int main() { - lcd.printf("Hello World!\n"); + 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); }