The start of a generic Text Display library to drive multiple types of text display in the same way

Dependencies:   mbed

main.cpp

Committer:
simon
Date:
2009-11-25
Revision:
0:e8a5ca303ebd

File content as of revision 0:e8a5ca303ebd:

// simple test of the start of a generic Text Display arch, sford

#include "mbed.h"

#include "TextDisplays.h"

TextLCD lcd1(p10, p11, p12, p15, p16, p29, p30); // rs, rw, e, d0-d3
Terminal lcd2(USBTX, USBRX); // tx, rx

int main() {
    lcd1.printf("Hello World!\nHow are you?");
    lcd2.printf("Hello World!\nHow are you?");

    wait(2);

    lcd1.locate(3,1);
    lcd2.locate(3,1);
    lcd1.foreground(0xFF0000);
    lcd2.foreground(0xFF0000);
    lcd1.printf("I'm Great!");
    lcd2.printf("I'm Great!");

    wait(3);

    lcd1.cls();
    lcd2.cls();
}