El-POM1001
/
LAB05_Oppgave2
LCD
main.cpp
- Committer:
- madmonkeyman82
- Date:
- 2015-10-15
- Revision:
- 0:90cc69dbc509
File content as of revision 0:90cc69dbc509:
#include "mbed.h" #include "TextLCD.h" TextLCD lcd(D11,D10,D9,D5,D4,D3,D2); void BlinkCursor(bool); int main() { lcd.gotoxy(1,1); lcd.printf("Hello"); lcd.gotoxy(4,2); lcd.printf("World"); BlinkCursor(0); while(1) { wait_ms(300); } } void BlinkCursor(bool OnOff) { if(OnOff)lcd.lcdComand(0x0F); else lcd.lcdComand(0x0C); }