bernard rayappa
/
lcdmonitor
test file
Fork of TextLCD_HelloWorld by
main.cpp@3:bae19bde97d5, 2013-04-13 (annotated)
- Committer:
- ramsphd
- Date:
- Sat Apr 13 07:03:04 2013 +0000
- Revision:
- 3:bae19bde97d5
- Parent:
- 2:ad0b044d0a10
- Child:
- 4:76169678e056
- Child:
- 5:1ad7d56050dd
try this RMK
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 1:7418a52375a0 | 1 | // Hello World! for the TextLCD |
simon | 1:7418a52375a0 | 2 | |
simon | 0:334327d1a416 | 3 | #include "mbed.h" |
simon | 0:334327d1a416 | 4 | #include "TextLCD.h" |
simon | 0:334327d1a416 | 5 | |
simon | 2:ad0b044d0a10 | 6 | TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7 |
simon | 0:334327d1a416 | 7 | |
ramsphd | 3:bae19bde97d5 | 8 | int main() |
ramsphd | 3:bae19bde97d5 | 9 | { |
ramsphd | 3:bae19bde97d5 | 10 | while (1){ |
ramsphd | 3:bae19bde97d5 | 11 | lcd.printf(" This is 16x2!\n"); |
ramsphd | 3:bae19bde97d5 | 12 | lcd.printf("Jello World!\n"); |
ramsphd | 3:bae19bde97d5 | 13 | wait(1); |
ramsphd | 3:bae19bde97d5 | 14 | lcd.printf("Jello World! \n"); |
simon | 0:334327d1a416 | 15 | lcd.printf("Hello World!\n"); |
ramsphd | 3:bae19bde97d5 | 16 | wait(1); |
simon | 0:334327d1a416 | 17 | } |
ramsphd | 3:bae19bde97d5 | 18 | } |