LCD

Dependencies:   LCDLib mbed

Fork of KS0066U4_16x2 by Rune Langoy

main.cpp

Committer:
madmonkeyman82
Date:
2015-10-15
Revision:
4:afa73d3e1a34
Parent:
3:81d65a2a1920

File content as of revision 4:afa73d3e1a34:

 #include "mbed.h"
 #include "TextLCD.h"
 
 TextLCD lcd(D11,D10,D9,D5,D4,D3,D2);
 

 void BlinkCursor(bool);
 
 int main()
 {    
    int iCounter = 0;
    
    while(1) 
    {
        lcd.gotoxy(1,1);
        lcd.printf("Nr: %d", iCounter);
        lcd.gotoxy(1,2);
        lcd.printf("Nr: %d", iCounter+1);
        iCounter++;
        wait_ms(500);
    }
 }
 
 
 void BlinkCursor(bool OnOff)
{
    if(OnOff)lcd.lcdComand(0x0F);
    else     lcd.lcdComand(0x0C);
}