Takeuchi Kouichi
/
2ak0907_LCD_20x04
main.cpp
- Committer:
- takeuchi
- Date:
- 2010-09-07
- Revision:
- 0:2b9839c38d5b
File content as of revision 0:2b9839c38d5b:
#include "mbed.h" #include "TextLCD2004.h" #define ON 1 #define OFF 0 DigitalOut mled0(LED1); DigitalOut mled1(LED2); TextLCD lcd(p24, p25, p26, p27, p28, p29, p30,20,4); // rs, rw, e, d0, d1, d2, d3 int main() { lcd.cls(); lcd.locate(0,0); lcd.printf("mbed"); lcd.locate(5,1); lcd.printf("Eleki"); lcd.locate(10,2); lcd.printf("Jack"); lcd.locate(14,3); lcd.printf("World!"); }//main