Paul Evans
/
Newhaven_LCD
Newhaven 320x240 LCD
Diff: newhaven.h
- Revision:
- 0:c8893901ef8a
- Child:
- 1:fa44aeffcfd6
diff -r 000000000000 -r c8893901ef8a newhaven.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/newhaven.h Sun Feb 27 21:01:16 2011 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +class NHLCD { + public: + NHLCD(PinName PIN_E,PinName PIN_RW,PinName PIN_A0,PinName PIN_CS,PinName PIN_RST, BusInOut *BUSLCD); + void Init(); + void comm_out(unsigned char j); + void data_out(unsigned char j); + void clearScreen(); + void text(char* text, char row, char col); + void setPixel(int row, int col); + + private: + DigitalOut E,RW,A0,CS,RST; + BusInOut *LCD_PORT; + +}; + +void delay(unsigned int n); +void delay1(unsigned int n);