Paul Evans
/
Newhaven_LCD
Newhaven 320x240 LCD
Diff: newhaven.h
- Revision:
- 2:2058e2f79157
- Parent:
- 1:fa44aeffcfd6
- Child:
- 4:aa6dc362b462
--- a/newhaven.h Sun Feb 27 21:14:19 2011 +0000 +++ b/newhaven.h Sun Feb 27 21:40:59 2011 +0000 @@ -34,11 +34,40 @@ * @param BUSLCD Bi-directional 8-bit data bus */ NHLCD(PinName PIN_E,PinName PIN_RW,PinName PIN_A0,PinName PIN_CS,PinName PIN_RST, BusInOut *BUSLCD); + + /* Initializes the LCD + */ void Init(); + + /* Outputs a command across the 8-bit bus to the LCD + * + * @param j hex-code of command + */ void comm_out(unsigned char j); + + /* Outputs data across the 8-bit bus to the LCD + * + * @param j data to send + */ void data_out(unsigned char j); + + /* Clears the entire screen of set pixels + */ void clearScreen(); + + /* Writes text to the LCD (with a resolution of 40x30 characters) + * + * @param text a string of text to write on the screen + * @param row the row of the first character + * @param col the column of the first character + */ void text(char* text, char row, char col); + + /* Sets an individual pixel on the LCD (with a resolution of 320x240 pixels) + * + * @param row the row of the pixel + * @param col the column of the pixel + */ void setPixel(int row, int col); private: