a

Dependencies:   mbed

Fork of TextLCD_HelloWorld by Simon Ford

main.cpp

Committer:
yadaken
Date:
2013-03-20
Revision:
3:4a39f290a99c
Parent:
2:ad0b044d0a10

File content as of revision 3:4a39f290a99c:

// Hello World! for the TextLCD

#include "mbed.h"
#include "TextLCD.h"

TextLCD lcd(p24, p25, p26, p27, p28, p29, p30); // rs, e, d4-d7

int main() {
    int count = 0;

    lcd.printf("Hello World!\n");
    
    while(1) {
        lcd.locate(8,1);
        lcd.printf("%04d",count);
        count++;
        wait(1.0);
    }
}