yoshinari kou
/
LCD_Hello_mbed
Pin asigne changed. Plug in a LCD module from p13 to p20.
main.cpp@0:f2ae0d794c78, 2011-07-13 (annotated)
- Committer:
- halfpitch
- Date:
- Wed Jul 13 13:03:29 2011 +0000
- Revision:
- 0:f2ae0d794c78
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
halfpitch | 0:f2ae0d794c78 | 1 | #include "mbed.h" |
halfpitch | 0:f2ae0d794c78 | 2 | #include "TextLCD.h" |
halfpitch | 0:f2ae0d794c78 | 3 | |
halfpitch | 0:f2ae0d794c78 | 4 | //TextLCD lcd(p24, p25, p26, p27, p28, p29, p30); // rs, rw, e, d4, d5, d6, d7 |
halfpitch | 0:f2ae0d794c78 | 5 | TextLCD lcd(p14, p15, p16, p17, p18, p19, p20); |
halfpitch | 0:f2ae0d794c78 | 6 | int main() { |
halfpitch | 0:f2ae0d794c78 | 7 | lcd.cls(); |
halfpitch | 0:f2ae0d794c78 | 8 | lcd.printf("Hello mbed world!"); |
halfpitch | 0:f2ae0d794c78 | 9 | } |