Convenience routines for an I"C connected LCD display. Handy things like taking cursor to home, positioning cursor, clearing display, writing strings etc

Dependents:   gu_squirt_tester

Committer:
jont
Date:
Thu Nov 08 06:12:34 2012 +0000
Revision:
2:5b220477045b
Parent:
0:8f724a47a820
Child:
3:5744bf6006e1
update;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jont 0:8f724a47a820 1
jont 0:8f724a47a820 2 #ifndef jtlcd
jont 0:8f724a47a820 3 #define jtlcd
jont 0:8f724a47a820 4
jont 0:8f724a47a820 5 #define Slave 0x7c
jont 2:5b220477045b 6 //#define Comsend 0x00
jont 2:5b220477045b 7 //#define Datasend 0x40
jont 2:5b220477045b 8
jont 2:5b220477045b 9 void LcdWriteText(char *text);
jont 2:5b220477045b 10 void LcdInit();
jont 2:5b220477045b 11 //void lcdclear();
jont 2:5b220477045b 12 void test();
jont 2:5b220477045b 13 void LcdHomeBottom(void);
jont 2:5b220477045b 14
jont 2:5b220477045b 15 void write_E_port(unsigned char command,unsigned char data);
jont 0:8f724a47a820 16
jont 2:5b220477045b 17 void LcdClear(void);
jont 2:5b220477045b 18 void LcdHomeTop(void);
jont 2:5b220477045b 19 void LcdHomeBottom(void);
jont 2:5b220477045b 20 void LcdCursorLeft(void);
jont 2:5b220477045b 21 void LcdCursorRight(void);
jont 2:5b220477045b 22 void LcdSpace(void);
jont 2:5b220477045b 23
jont 2:5b220477045b 24 void LcdCursorFlash(void);
jont 2:5b220477045b 25 void LcdCursorOff(void);
jont 2:5b220477045b 26 void LcdCursorNorm(void);
jont 2:5b220477045b 27 void LcdClearTop(void);
jont 2:5b220477045b 28 void LcdClearBottom(void);
jont 2:5b220477045b 29
jont 2:5b220477045b 30 void LcdNSpace(int);
jont 2:5b220477045b 31 void LcdCursorNRight(int);
jont 2:5b220477045b 32 void LcdCursorNLeft(int);
jont 2:5b220477045b 33 void LcdPositionBottom(int);
jont 2:5b220477045b 34 void LcdPositionTop(int);
jont 2:5b220477045b 35
jont 2:5b220477045b 36 //int LcdGetAddress(void);
jont 2:5b220477045b 37 void LcdSetAddress(int);
jont 2:5b220477045b 38
jont 2:5b220477045b 39
jont 0:8f724a47a820 40
jont 0:8f724a47a820 41
jont 0:8f724a47a820 42 #endif