This code does the initialization of the sharp lq040y3dx80a 800x480 display
SharpDisplay.h@0:8eab839d7892, 2014-10-17 (annotated)
- Committer:
- glansberry
- Date:
- Fri Oct 17 11:35:46 2014 +0000
- Revision:
- 0:8eab839d7892
Several attempts in - this new version uses the data from a sharp header file to initialize the display.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
glansberry | 0:8eab839d7892 | 1 | /* ************ |
glansberry | 0:8eab839d7892 | 2 | * |
glansberry | 0:8eab839d7892 | 3 | */ |
glansberry | 0:8eab839d7892 | 4 | #ifndef __SHARPDISPLAY_H |
glansberry | 0:8eab839d7892 | 5 | #define __SHARPDISPLAY_H |
glansberry | 0:8eab839d7892 | 6 | |
glansberry | 0:8eab839d7892 | 7 | #define TAG_ADDRESS_HIGH 0x20 //00100000b //first transmit (high address) |
glansberry | 0:8eab839d7892 | 8 | #define TAG_ADDRESS_LOW 0x00 //00000000b //second transmit (low address) |
glansberry | 0:8eab839d7892 | 9 | #define TAG_DATA_WRITE 0x40 //11000000b //third transmit (data) |
glansberry | 0:8eab839d7892 | 10 | #define LCD_DATA_READ_FLAG 0x80 //this bit must be set when reading |
glansberry | 0:8eab839d7892 | 11 | |
glansberry | 0:8eab839d7892 | 12 | #define LCD_SLEEP_OUT 0x11 |
glansberry | 0:8eab839d7892 | 13 | #define LCD_DISPLAY_ON 0x29 |
glansberry | 0:8eab839d7892 | 14 | #define LCD_ALLPON 0x23 //All pixels on |
glansberry | 0:8eab839d7892 | 15 | #define LCD_ALLPOFF 0x22 //All pixels off |
glansberry | 0:8eab839d7892 | 16 | #define LCD_RDDSDR 0x0F //Results of self test |
glansberry | 0:8eab839d7892 | 17 | |
glansberry | 0:8eab839d7892 | 18 | #endif |