Nobuki HIRAMINE
/
lcd
Display a string to the LCD.
main.cpp
- Committer:
- nobuki
- Date:
- 2012-06-17
- Revision:
- 0:4de64ea3fd75
File content as of revision 0:4de64ea3fd75:
#include "mbed.h" #include "TextLCD.h" TextLCD g_lcd(p15, p16, p17, p18, p19, p20); // RS, E, DB4, DB5, DB6, DB7 int main() { wait(0.001); g_lcd.cls(); wait(0.001); g_lcd.locate(0, 0); g_lcd.printf( "Hello world!"); int iCounter = 0; while(1) { g_lcd.locate(0, 1); g_lcd.printf( "%d", iCounter ); iCounter++; wait(1.0); } }