Convenience routines for an I"C connected LCD display. Handy things like taking cursor to home, positioning cursor, clearing display, writing strings etc
Diff: jtlcd.h
- Revision:
- 2:5b220477045b
- Parent:
- 0:8f724a47a820
- Child:
- 3:5744bf6006e1
--- a/jtlcd.h Wed Nov 07 22:23:13 2012 +0000 +++ b/jtlcd.h Thu Nov 08 06:12:34 2012 +0000 @@ -3,13 +3,40 @@ #define jtlcd #define Slave 0x7c -#define Comsend 0x00 -#define Datasend 0x40 +//#define Comsend 0x00 +//#define Datasend 0x40 + +void LcdWriteText(char *text); +void LcdInit(); +//void lcdclear(); +void test(); +void LcdHomeBottom(void); + +void write_E_port(unsigned char command,unsigned char data); -void Show(char *text); -void lcdinit(); -void lcdclear(); -void test(); +void LcdClear(void); +void LcdHomeTop(void); +void LcdHomeBottom(void); +void LcdCursorLeft(void); +void LcdCursorRight(void); +void LcdSpace(void); + +void LcdCursorFlash(void); +void LcdCursorOff(void); +void LcdCursorNorm(void); +void LcdClearTop(void); +void LcdClearBottom(void); + +void LcdNSpace(int); +void LcdCursorNRight(int); +void LcdCursorNLeft(int); +void LcdPositionBottom(int); +void LcdPositionTop(int); + +//int LcdGetAddress(void); +void LcdSetAddress(int); + + #endif \ No newline at end of file