Newhaven 320x240 LCD

Dependencies:   mbed

main.cpp

Committer:
pbevans89
Date:
2011-02-27
Revision:
0:c8893901ef8a
Child:
3:1cf3ec6c70d7

File content as of revision 0:c8893901ef8a:

#include "mbed.h"
#include "newhaven.h"

BusInOut  MyBus(p8,p9,p10,p11,p12,p13,p14,p15);
NHLCD   MyLCD(p5,p6,p7,p16,p17,&MyBus);

int main() {
    int i;
    MyLCD.Init();
    MyLCD.clearScreen();
    wait(.5);
    while(1)
    {
    MyLCD.text("Hello World!", 10, 1);
    wait(1);
    for(i = 0; i < 20; i++){
        MyLCD.setPixel(i,i);
    }
    wait(1);
    MyLCD.clearScreen();
    wait(1);
    }
}