This code does the initialization of the sharp lq040y3dx80a 800x480 display

Dependencies:   mbed-src

LCDPrm.h

Committer:
glansberry
Date:
2014-10-17
Revision:
0:8eab839d7892

File content as of revision 0:8eab839d7892:

#define NUM_SPI_VALUES    414



   0xFF00, 0xAA
   0xFF01, 0x55
   0xFF02, 0x25
   0xFF03, 0x1
   0xF300, 0x0
   0xF301, 0x32
   0xF302, 0x0
   0xF303, 0x38
   0xF304, 0x31
   0xF305, 0x8
   0xF306, 0x11
   0xF307, 0x0
   0xF000, 0x55
   0xF001, 0xAA
   0xF002, 0x52
   0xF003, 0x8
   0xF004, 0x0
   0xB000, 0x0
   0xB001, 0x5
   0xB002, 0x2
   0xB003, 0x5
   0xB004, 0x2
   0xB300, 0x0
   0xB600, 0xA
   0xB700, 0x0
   0xB701, 0x0
   0xB800, 0x1
   0xB801, 0x5
   0xB802, 0x5
   0x803, 0x5
   0xBC00, 0x0
   0xBC01, 0xC8
   0xBC02, 0x0
   0xBD00, 0x1
   0xBD01, 0x84
   0xBD02, 0x6
   0xBD03, 0x50
   0xBD04, 0x0
   0xCC00, 0x3
   0xCC01, 0x0
   0xCC02, 0x0
   0xF000, 0x55
   0xF001, 0xAA
   0xF002, 0x52
   0xF003, 0x8
   0xF004, 0x1
   0xB000, 0x5
   0xB001, 0x5
   0xB002, 0x5
   0xB100, 0x5
   0xB101, 0x5
   0xB102, 0x5
   0xB200, 0x3
   0xB201, 0x3
   0xB202, 0x3
   0xB800, 0x25
   0xB801, 0x25
   0xB802, 0x25
   0xB300, 0x9
   0xB301, 0x9
   0xB302, 0x9
   0xB900, 0x34
   0xB901, 0x34
   0xB902, 0x34
   0xBF00, 0x1
   0xB500, 0xA
   0xB501, 0xA
   0xB502, 0xA
   0xBA00, 0x24
   0xBA01, 0x24
   0xBA02, 0x24
   0xB400, 0x2D
   0xB401, 0x2D
   0xB402, 0x2D
   0xBC00, 0x0
   0xBC01, 0x68
   0xBC02, 0x0
   0xBD00, 0x0
   0xBD01, 0x7C
   0xBD02, 0x0
   0xBE00, 0x0
   0xBE01, 0x70
   0xF000, 0x55
   0xF001, 0xAA
   0xF002, 0x52
   0xF003, 0x1
   0xD000, 0xB
   0xD001, 0x14
   0xD002, 0xC
   0xD003, 0xE
   0xD100, 0x0
   0xD101, 0x37
   0xD102, 0x0
   0xD103, 0x4A
   0xD104, 0x0
   0xD105, 0x6F
   0xD106, 0x0
   0xD107, 0x8D
   0xD108, 0x0
   0xD109, 0xAD
   0xD10A, 0x0
   0xD10B, 0xDF
   0xD10C, 0x1
   0xD10D, 0x11
   0xD10E, 0x1
   0xD10F, 0x58
   0xD110, 0x1
   0xD111, 0x76
   0xD112, 0x1
   0xD113, 0xA6
   0xD114, 0x1
   0xD115, 0xCD
   0xD116, 0x2
   0xD117, 0xE
   0xD118, 0x2
   0xD119, 0x46
   0xD11A, 0x2
   0xD11B, 0x48
   0xD11C, 0x2
   0xD11D, 0x78
   0xD11E, 0x2
   0xD11F, 0xAC
   0xD120, 0x2
   0xD121, 0xCD
   0xD122, 0x2
   0xD123, 0xFD
   0xD124, 0x3
   0xD125, 0x1F
   0xD126, 0x3
   0xD127, 0x4B
   0xD128, 0x3
   0xD129, 0x69
   0xD12A, 0x3
   0xD12B, 0x8E
   0xD12C, 0x3
   0xD12D, 0xA5
   0xD12E, 0x3
   0xD12F, 0xCD
   0xD130, 0x3
   0xD131, 0xF1
   0xD132, 0x3
   0xD133, 0xF1
   0xD200, 0x0
   0xD201, 0x37
   0xD202, 0x0
   0xD203, 0x4A
   0xD204, 0x0
   0xD205, 0x6F
   0xD206, 0x0
   0xD207, 0x8D
   0xD208, 0x0
   0xD209, 0xAD
   0xD20A, 0x0
   0xD20B, 0xDF
   0xD20C, 0x1
   0xD20D, 0x11
   0xD20E, 0x1
   0xD20F, 0x58
   0xD210, 0x1
   0xD211, 0x76
   0xD212, 0x1
   0xD213, 0xA6
   0xD214, 0x1
   0xD215, 0xCD
   0xD216, 0x2
   0xD217, 0xE
   0xD218, 0x2
   0xD219, 0x46
   0xD21A, 0x2
   0xD21B, 0x48
   0xD21C, 0x2
   0xD21D, 0x78
   0xD21E, 0x2
   0xD21F, 0xAC
   0xD220, 0x2
   0xD221, 0xCD
   0xD222, 0x2
   0xD223, 0xFD
   0xD224, 0x3
   0xD225, 0x1F
   0xD226, 0x3
   0xD227, 0x4B
   0xD228, 0x3
   0xD229, 0x69
   0xD22A, 0x3
   0xD22B, 0x8E
   0xD22C, 0x3
   0xD22D, 0xA5
   0xD22E, 0x3
   0xD22F, 0xCD
   0xD230, 0x3
   0xD231, 0xF1
   0xD232, 0x3
   0xD233, 0xF1
   0xD300, 0x0
   0xD301, 0x37
   0xD302, 0x0
   0xD303, 0x4A
   0xD304, 0x0
   0xD305, 0x6F
   0xD306, 0x0
   0xD307, 0x8D
   0xD308, 0x0
   0xD309, 0xAD
   0xD30A, 0x0
   0xD30B, 0xDF
   0xD30C, 0x1
   0xD30D, 0x11
   0xD30E, 0x1
   0xD30F, 0x58
   0xD310, 0x1
   0xD311, 0x76
   0xD312, 0x1
   0xD313, 0xA6
   0xD314, 0x1
   0xD315, 0xCD
   0xD316, 0x2
   0xD317, 0xE
   0xD318, 0x2
   0xD319, 0x46
   0xD31A, 0x2
   0xD31B, 0x48
   0xD31C, 0x2
   0xD31D, 0x78
   0xD31E, 0x2
   0xD31F, 0xAC
   0xD320, 0x2
   0xD321, 0xCD
   0xD322, 0x2
   0xD323, 0xFD
   0xD324, 0x3
   0xD325, 0x1F
   0xD326, 0x3
   0xD327, 0x4B
   0xD328, 0x3
   0xD329, 0x69
   0xD32A, 0x3
   0xD32B, 0x8E
   0xD32C, 0x3
   0xD32D, 0xA5
   0xD32E, 0x3
   0xD32F, 0xCD
   0xD330, 0x3
   0xD331, 0xF1
   0xD332, 0x3
   0xD333, 0xF1
   0xD400, 0x0
   0xD401, 0x37
   0xD402, 0x0
   0xD403, 0x4A
   0xD404, 0x0
   0xD405, 0x6F
   0xD406, 0x0
   0xD407, 0x8D
   0xD408, 0x0
   0xD409, 0xAD
   0xD40A, 0x0
   0xD40B, 0xDF
   0xD40C, 0x1
   0xD40D, 0x11
   0xD40E, 0x1
   0xD40F, 0x58
   0xD410, 0x1
   0xD411, 0x76
   0xD412, 0x1
   0xD413, 0xA6
   0xD414, 0x1
   0xD415, 0xCD
   0xD416, 0x2
   0xD417, 0xE
   0xD418, 0x2
   0xD419, 0x46
   0xD41A, 0x2
   0xD41B, 0x48
   0xD41C, 0x2
   0xD41D, 0x78
   0xD41E, 0x2
   0xD41F, 0xAC
   0xD420, 0x2
   0xD421, 0xCD
   0xD422, 0x2
   0xD423, 0xFD
   0xD424, 0x3
   0xD425, 0x1F
   0xD426, 0x3
   0xD427, 0x4B
   0xD428, 0x3
   0xD429, 0x69
   0xD42A, 0x3
   0xD42B, 0x8E
   0xD42C, 0x3
   0xD42D, 0xA5
   0xD42E, 0x3
   0xD42F, 0xCD
   0xD430, 0x3
   0xD431, 0xF1
   0xD432, 0x3
   0xD433, 0xF1
   0xD500, 0x0
   0xD501, 0x37
   0xD502, 0x0
   0xD503, 0x4A
   0xD504, 0x0
   0xD505, 0x6F
   0xD506, 0x0
   0xD507, 0x8D
   0xD508, 0x0
   0xD509, 0xAD
   0xD50A, 0x0
   0xD50B, 0xDF
   0xD50C, 0x1
   0xD50D, 0x11
   0xD50E, 0x1
   0xD50F, 0x58
   0xD510, 0x1
   0xD511, 0x76
   0xD512, 0x1
   0xD513, 0xA6
   0xD514, 0x1
   0xD515, 0xCD
   0xD516, 0x2
   0xD517, 0xE
   0xD518, 0x2
   0xD519, 0x46
   0xD51A, 0x2
   0xD51B, 0x48
   0xD51C, 0x2
   0xD51D, 0x78
   0xD51E, 0x2
   0xD51F, 0xAC
   0xD520, 0x2
   0xD521, 0xCD
   0xD522, 0x2
   0xD523, 0xFD
   0xD524, 0x3
   0xD525, 0x1F
   0xD526, 0x3
   0xD527, 0x4B
   0xD528, 0x3
   0xD529, 0x69
   0xD52A, 0x3
   0xD52B, 0x8E
   0xD52C, 0x3
   0xD52D, 0xA5
   0xD52E, 0x3
   0xD52F, 0xCD
   0xD530, 0x3
   0xD531, 0xF1
   0xF532, 0x3
   0xD533, 0xF1
   0xD600, 0x0
   0xD601, 0x37
   0xD602, 0x0
   0xD603, 0x4A
   0xD604, 0x0
   0xD605, 0x6F
   0xD606, 0x0
   0xD607, 0x8D
   0xD608, 0x0
   0xD609, 0xAD
   0xD60A, 0x0
   0xD60B, 0xDF
   0xD60C, 0x1
   0xD60D, 0x11
   0xD60E, 0x1
   0xD60F, 0x58
   0xD610, 0x1
   0xD611, 0x76
   0xD612, 0x1
   0xD613, 0xA6
   0xD614, 0x1
   0xD615, 0xCD
   0xD616, 0x2
   0xD617, 0xE
   0xD618, 0x2
   0xD619, 0x46
   0xD61A, 0x2
   0xD61B, 0x48
   0xD61C, 0x2
   0xD61D, 0x78
   0xD61E, 0x2
   0xD61F, 0xAC
   0xD620, 0x2
   0xD621, 0xCD
   0xD622, 0x2
   0xD623, 0xFD
   0xD624, 0x3
   0xD625, 0x1F
   0xD626, 0x3
   0xD627, 0x4B
   0xD628, 0x3
   0xD629, 0x69
   0xD62A, 0x3
   0xD62B, 0x8E
   0xD62C, 0x3
   0xD62D, 0xA5
   0xD62E, 0x3
   0xD62F, 0xCD
   0xD630, 0x3
   0xD631, 0xF1
   0xD632, 0x3
   0xD633, 0xF1
   0xF000, 0x55
   0xF001, 0xAA
   0xF002, 0x52
   0xF003, 0x8
   0xF004, 0x0
   0xB400, 0x10
   0x3A00, 0x77
   0xB101, 0x0
   0x1100, 0x0
   // Delay 0x64ms
   0x2900, 0x0
   // Delay 0x64ms