Convenience routines for an I"C connected LCD display. Handy things like taking cursor to home, positioning cursor, clearing display, writing strings etc
jtlcd.h@3:5744bf6006e1, 2012-11-09 (annotated)
- Committer:
- jont
- Date:
- Fri Nov 09 09:36:36 2012 +0000
- Revision:
- 3:5744bf6006e1
- Parent:
- 2:5b220477045b
- Child:
- 4:ce867009531a
added write and clear to end of line
Who changed what in which revision?
User | Revision | Line number | New 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 | 3:5744bf6006e1 | 6 | #define LCD_LINE_SIZE 16 |
jont | 2:5b220477045b | 7 | //#define Comsend 0x00 |
jont | 2:5b220477045b | 8 | //#define Datasend 0x40 |
jont | 3:5744bf6006e1 | 9 | void LcdWriteTextAndFill(char *text, int numb); |
jont | 2:5b220477045b | 10 | void LcdWriteText(char *text); |
jont | 2:5b220477045b | 11 | void LcdInit(); |
jont | 2:5b220477045b | 12 | //void lcdclear(); |
jont | 2:5b220477045b | 13 | void test(); |
jont | 2:5b220477045b | 14 | void LcdHomeBottom(void); |
jont | 2:5b220477045b | 15 | |
jont | 2:5b220477045b | 16 | void write_E_port(unsigned char command,unsigned char data); |
jont | 0:8f724a47a820 | 17 | |
jont | 2:5b220477045b | 18 | void LcdClear(void); |
jont | 2:5b220477045b | 19 | void LcdHomeTop(void); |
jont | 2:5b220477045b | 20 | void LcdHomeBottom(void); |
jont | 2:5b220477045b | 21 | void LcdCursorLeft(void); |
jont | 2:5b220477045b | 22 | void LcdCursorRight(void); |
jont | 2:5b220477045b | 23 | void LcdSpace(void); |
jont | 2:5b220477045b | 24 | |
jont | 2:5b220477045b | 25 | void LcdCursorFlash(void); |
jont | 2:5b220477045b | 26 | void LcdCursorOff(void); |
jont | 2:5b220477045b | 27 | void LcdCursorNorm(void); |
jont | 2:5b220477045b | 28 | void LcdClearTop(void); |
jont | 2:5b220477045b | 29 | void LcdClearBottom(void); |
jont | 2:5b220477045b | 30 | |
jont | 2:5b220477045b | 31 | void LcdNSpace(int); |
jont | 2:5b220477045b | 32 | void LcdCursorNRight(int); |
jont | 2:5b220477045b | 33 | void LcdCursorNLeft(int); |
jont | 2:5b220477045b | 34 | void LcdPositionBottom(int); |
jont | 2:5b220477045b | 35 | void LcdPositionTop(int); |
jont | 2:5b220477045b | 36 | |
jont | 2:5b220477045b | 37 | //int LcdGetAddress(void); |
jont | 2:5b220477045b | 38 | void LcdSetAddress(int); |
jont | 2:5b220477045b | 39 | |
jont | 2:5b220477045b | 40 | |
jont | 0:8f724a47a820 | 41 | |
jont | 0:8f724a47a820 | 42 | |
jont | 0:8f724a47a820 | 43 | #endif |