This code does the initialization of the sharp lq040y3dx80a 800x480 display
main.cpp@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 | #include "mbed.h" |
glansberry | 0:8eab839d7892 | 2 | //#include "SharpDisplay.h" |
glansberry | 0:8eab839d7892 | 3 | #define TAG_ADDRESS_HIGH 0x20 //00100000b //first transmit (high address) |
glansberry | 0:8eab839d7892 | 4 | #define TAG_ADDRESS_LOW 0x00 //00000000b //second transmit (low address) |
glansberry | 0:8eab839d7892 | 5 | #define TAG_DATA_WRITE 0x40 //11000000b //third transmit (data) |
glansberry | 0:8eab839d7892 | 6 | #define LCD_DATA_READ_FLAG 0x80 //this bit must be set when reading |
glansberry | 0:8eab839d7892 | 7 | |
glansberry | 0:8eab839d7892 | 8 | #define LCD_SLEEP_OUT 0x11 |
glansberry | 0:8eab839d7892 | 9 | #define LCD_DISPLAY_ON 0x29 |
glansberry | 0:8eab839d7892 | 10 | #define LCD_ALLPON 0x23 //All pixels on |
glansberry | 0:8eab839d7892 | 11 | #define LCD_ALLPOFF 0x22 //All pixels off |
glansberry | 0:8eab839d7892 | 12 | #define LCD_RDDSDR 0x0F //Results of self test |
glansberry | 0:8eab839d7892 | 13 | |
glansberry | 0:8eab839d7892 | 14 | |
glansberry | 0:8eab839d7892 | 15 | void SharpLCD_Init(void); |
glansberry | 0:8eab839d7892 | 16 | void SharpHeaderFileInit(void); |
glansberry | 0:8eab839d7892 | 17 | uint16_t SharpLCD_Write(uint16_t address, uint8_t data); |
glansberry | 0:8eab839d7892 | 18 | void SharpLCD_WriteAddress(uint16_t address); |
glansberry | 0:8eab839d7892 | 19 | uint8_t SharpLCD_Read(uint16_t address); |
glansberry | 0:8eab839d7892 | 20 | |
glansberry | 0:8eab839d7892 | 21 | SPI device(D11, D12, SPI_SCK); |
glansberry | 0:8eab839d7892 | 22 | |
glansberry | 0:8eab839d7892 | 23 | Serial pc(SERIAL_TX, SERIAL_RX); //create a serial console |
glansberry | 0:8eab839d7892 | 24 | DigitalOut SharpReset(D8); //set D8 as the reset output pin |
glansberry | 0:8eab839d7892 | 25 | DigitalOut SharpCS(D7); //Set D7 as the cs output pin |
glansberry | 0:8eab839d7892 | 26 | |
glansberry | 0:8eab839d7892 | 27 | |
glansberry | 0:8eab839d7892 | 28 | |
glansberry | 0:8eab839d7892 | 29 | int main() { |
glansberry | 0:8eab839d7892 | 30 | wait_ms(200); // I think the reset switch might bounce, so don't start right away. |
glansberry | 0:8eab839d7892 | 31 | SharpCS = 1; // 1= disable |
glansberry | 0:8eab839d7892 | 32 | device.format(16,0); //16 bits, mode 0 (default) |
glansberry | 0:8eab839d7892 | 33 | device.frequency(500000); |
glansberry | 0:8eab839d7892 | 34 | pc.baud(115200); // set the serial port baud to 115.2k |
glansberry | 0:8eab839d7892 | 35 | pc.printf("Sharp Spi Command Sender\n"); |
glansberry | 0:8eab839d7892 | 36 | |
glansberry | 0:8eab839d7892 | 37 | //perform the reset ritual |
glansberry | 0:8eab839d7892 | 38 | wait_ms(10); |
glansberry | 0:8eab839d7892 | 39 | SharpReset = 1; |
glansberry | 0:8eab839d7892 | 40 | SharpReset = 0; |
glansberry | 0:8eab839d7892 | 41 | wait_ms(10); |
glansberry | 0:8eab839d7892 | 42 | SharpReset = 1; |
glansberry | 0:8eab839d7892 | 43 | wait_ms(200); |
glansberry | 0:8eab839d7892 | 44 | |
glansberry | 0:8eab839d7892 | 45 | |
glansberry | 0:8eab839d7892 | 46 | //SharpLCD_Init(); |
glansberry | 0:8eab839d7892 | 47 | SharpHeaderFileInit(); //initialize with the method used in the sharp demo |
glansberry | 0:8eab839d7892 | 48 | |
glansberry | 0:8eab839d7892 | 49 | // SharpLCD_WriteAddress((LCD_ALLPON<<8)&0xFF00); |
glansberry | 0:8eab839d7892 | 50 | //SharpLCD_WriteAddress((LCD_SLEEP_OUT<<8)&0xFF00); |
glansberry | 0:8eab839d7892 | 51 | //wait_ms(100); |
glansberry | 0:8eab839d7892 | 52 | //SharpLCD_WriteAddress((LCD_DISPLAY_ON<<8)&0xFF00); |
glansberry | 0:8eab839d7892 | 53 | //wait_ms(100); |
glansberry | 0:8eab839d7892 | 54 | |
glansberry | 0:8eab839d7892 | 55 | |
glansberry | 0:8eab839d7892 | 56 | pc.printf("Read of address %x = %x\n", LCD_RDDSDR, SharpLCD_Read((LCD_RDDSDR<<8)&0xFF00)); |
glansberry | 0:8eab839d7892 | 57 | |
glansberry | 0:8eab839d7892 | 58 | //after initialization, toggle the display white then black every second |
glansberry | 0:8eab839d7892 | 59 | while(1){ |
glansberry | 0:8eab839d7892 | 60 | SharpLCD_WriteAddress((LCD_ALLPON<<8)&0xFF00); |
glansberry | 0:8eab839d7892 | 61 | wait(1.0); |
glansberry | 0:8eab839d7892 | 62 | SharpLCD_WriteAddress((LCD_ALLPOFF<<8)&0xFF00); |
glansberry | 0:8eab839d7892 | 63 | wait(1.0); |
glansberry | 0:8eab839d7892 | 64 | } |
glansberry | 0:8eab839d7892 | 65 | } |
glansberry | 0:8eab839d7892 | 66 | |
glansberry | 0:8eab839d7892 | 67 | |
glansberry | 0:8eab839d7892 | 68 | |
glansberry | 0:8eab839d7892 | 69 | |
glansberry | 0:8eab839d7892 | 70 | |
glansberry | 0:8eab839d7892 | 71 | void SharpLCD_WriteAddress(uint16_t address) |
glansberry | 0:8eab839d7892 | 72 | { |
glansberry | 0:8eab839d7892 | 73 | SharpCS = 0; |
glansberry | 0:8eab839d7892 | 74 | device.write((TAG_ADDRESS_HIGH<<8) | (address>>8)); |
glansberry | 0:8eab839d7892 | 75 | SharpCS = 1; |
glansberry | 0:8eab839d7892 | 76 | wait_us(10); |
glansberry | 0:8eab839d7892 | 77 | |
glansberry | 0:8eab839d7892 | 78 | SharpCS = 0; |
glansberry | 0:8eab839d7892 | 79 | device.write((TAG_ADDRESS_LOW<<8) | (address & 0xFF)); |
glansberry | 0:8eab839d7892 | 80 | SharpCS = 1; |
glansberry | 0:8eab839d7892 | 81 | wait_us(10); |
glansberry | 0:8eab839d7892 | 82 | |
glansberry | 0:8eab839d7892 | 83 | } |
glansberry | 0:8eab839d7892 | 84 | |
glansberry | 0:8eab839d7892 | 85 | uint16_t SharpLCD_Write(uint16_t address, uint8_t data) |
glansberry | 0:8eab839d7892 | 86 | { |
glansberry | 0:8eab839d7892 | 87 | uint16_t retval = 0; |
glansberry | 0:8eab839d7892 | 88 | SharpLCD_WriteAddress(address); |
glansberry | 0:8eab839d7892 | 89 | |
glansberry | 0:8eab839d7892 | 90 | SharpCS = 0; |
glansberry | 0:8eab839d7892 | 91 | retval = device.write((TAG_DATA_WRITE <<8) | data); |
glansberry | 0:8eab839d7892 | 92 | SharpCS = 1; |
glansberry | 0:8eab839d7892 | 93 | wait_us(10); |
glansberry | 0:8eab839d7892 | 94 | |
glansberry | 0:8eab839d7892 | 95 | return retval; |
glansberry | 0:8eab839d7892 | 96 | |
glansberry | 0:8eab839d7892 | 97 | } |
glansberry | 0:8eab839d7892 | 98 | |
glansberry | 0:8eab839d7892 | 99 | uint8_t SharpLCD_Read(uint16_t address) |
glansberry | 0:8eab839d7892 | 100 | { |
glansberry | 0:8eab839d7892 | 101 | uint8_t retval = 0; |
glansberry | 0:8eab839d7892 | 102 | SharpLCD_WriteAddress(address); |
glansberry | 0:8eab839d7892 | 103 | |
glansberry | 0:8eab839d7892 | 104 | |
glansberry | 0:8eab839d7892 | 105 | SharpCS = 0; |
glansberry | 0:8eab839d7892 | 106 | retval = (uint8_t) (0xFF && device.write((TAG_DATA_WRITE <<8)| (LCD_DATA_READ_FLAG<<8) | 0xFF)); |
glansberry | 0:8eab839d7892 | 107 | SharpCS = 1; |
glansberry | 0:8eab839d7892 | 108 | wait_us(10); |
glansberry | 0:8eab839d7892 | 109 | |
glansberry | 0:8eab839d7892 | 110 | return retval; |
glansberry | 0:8eab839d7892 | 111 | |
glansberry | 0:8eab839d7892 | 112 | } |
glansberry | 0:8eab839d7892 | 113 | |
glansberry | 0:8eab839d7892 | 114 | |
glansberry | 0:8eab839d7892 | 115 | |
glansberry | 0:8eab839d7892 | 116 | |
glansberry | 0:8eab839d7892 | 117 | void SharpLCD_Init(void) |
glansberry | 0:8eab839d7892 | 118 | { |
glansberry | 0:8eab839d7892 | 119 | |
glansberry | 0:8eab839d7892 | 120 | /*Configure LCD*/ |
glansberry | 0:8eab839d7892 | 121 | SharpLCD_Write(0xFF00,0xAA); |
glansberry | 0:8eab839d7892 | 122 | SharpLCD_Write(0xFF01,0x55); |
glansberry | 0:8eab839d7892 | 123 | SharpLCD_Write(0xFF02,0x25); |
glansberry | 0:8eab839d7892 | 124 | SharpLCD_Write(0xFF03,0x01); |
glansberry | 0:8eab839d7892 | 125 | SharpLCD_Write(0xF300,0x00); |
glansberry | 0:8eab839d7892 | 126 | SharpLCD_Write(0xF301,0x32); |
glansberry | 0:8eab839d7892 | 127 | SharpLCD_Write(0xF302,0x00); |
glansberry | 0:8eab839d7892 | 128 | SharpLCD_Write(0xF303,0x38); |
glansberry | 0:8eab839d7892 | 129 | SharpLCD_Write(0xF304,0x31); |
glansberry | 0:8eab839d7892 | 130 | SharpLCD_Write(0xF305,0x08); |
glansberry | 0:8eab839d7892 | 131 | SharpLCD_Write(0xF306,0x11); |
glansberry | 0:8eab839d7892 | 132 | SharpLCD_Write(0xF307,0x00); |
glansberry | 0:8eab839d7892 | 133 | SharpLCD_Write(0xF000,0x55); |
glansberry | 0:8eab839d7892 | 134 | SharpLCD_Write(0xF001,0xAA); |
glansberry | 0:8eab839d7892 | 135 | SharpLCD_Write(0xF002,0x52); |
glansberry | 0:8eab839d7892 | 136 | SharpLCD_Write(0xF003,0x08); |
glansberry | 0:8eab839d7892 | 137 | SharpLCD_Write(0xF004,0x00); |
glansberry | 0:8eab839d7892 | 138 | SharpLCD_Write(0xB000,0x00); |
glansberry | 0:8eab839d7892 | 139 | SharpLCD_Write(0xB001,0x05); |
glansberry | 0:8eab839d7892 | 140 | SharpLCD_Write(0xB002,0x02); |
glansberry | 0:8eab839d7892 | 141 | SharpLCD_Write(0xB003,0x05); |
glansberry | 0:8eab839d7892 | 142 | SharpLCD_Write(0xB004,0x02); |
glansberry | 0:8eab839d7892 | 143 | SharpLCD_Write(0xB300,0x00); |
glansberry | 0:8eab839d7892 | 144 | SharpLCD_Write(0xB600,0x03); |
glansberry | 0:8eab839d7892 | 145 | SharpLCD_Write(0xB700,0x70); |
glansberry | 0:8eab839d7892 | 146 | SharpLCD_Write(0xB701,0x70); |
glansberry | 0:8eab839d7892 | 147 | SharpLCD_Write(0xB800,0x00); |
glansberry | 0:8eab839d7892 | 148 | SharpLCD_Write(0xB801,0x06); |
glansberry | 0:8eab839d7892 | 149 | SharpLCD_Write(0xB802,0x06); |
glansberry | 0:8eab839d7892 | 150 | SharpLCD_Write(0xB805,0x06); |
glansberry | 0:8eab839d7892 | 151 | SharpLCD_Write(0xBC00,0x00); |
glansberry | 0:8eab839d7892 | 152 | SharpLCD_Write(0xBC01,0xc8); |
glansberry | 0:8eab839d7892 | 153 | SharpLCD_Write(0xBC02,0x00); |
glansberry | 0:8eab839d7892 | 154 | SharpLCD_Write(0xBD00,0x01); |
glansberry | 0:8eab839d7892 | 155 | SharpLCD_Write(0xBD01,0x84); |
glansberry | 0:8eab839d7892 | 156 | SharpLCD_Write(0xBD02,0x06); |
glansberry | 0:8eab839d7892 | 157 | SharpLCD_Write(0xBD03,0x50); |
glansberry | 0:8eab839d7892 | 158 | SharpLCD_Write(0xBD04,0x00); |
glansberry | 0:8eab839d7892 | 159 | SharpLCD_Write(0xcc00,0x03); |
glansberry | 0:8eab839d7892 | 160 | SharpLCD_Write(0xcc01,0x01); |
glansberry | 0:8eab839d7892 | 161 | SharpLCD_Write(0xcc02,0x06); |
glansberry | 0:8eab839d7892 | 162 | SharpLCD_Write(0xF000,0x55); |
glansberry | 0:8eab839d7892 | 163 | SharpLCD_Write(0xF001,0xAA); |
glansberry | 0:8eab839d7892 | 164 | SharpLCD_Write(0xF002,0x52); |
glansberry | 0:8eab839d7892 | 165 | SharpLCD_Write(0xF003,0x08); |
glansberry | 0:8eab839d7892 | 166 | SharpLCD_Write(0xF004,0x01); |
glansberry | 0:8eab839d7892 | 167 | SharpLCD_Write(0xB000,0x05); |
glansberry | 0:8eab839d7892 | 168 | SharpLCD_Write(0xB001,0x05); |
glansberry | 0:8eab839d7892 | 169 | SharpLCD_Write(0xB002,0x05); |
glansberry | 0:8eab839d7892 | 170 | SharpLCD_Write(0xB100,0x05); |
glansberry | 0:8eab839d7892 | 171 | SharpLCD_Write(0xB101,0x05); |
glansberry | 0:8eab839d7892 | 172 | SharpLCD_Write(0xB102,0x05); |
glansberry | 0:8eab839d7892 | 173 | SharpLCD_Write(0xB200,0x03); |
glansberry | 0:8eab839d7892 | 174 | SharpLCD_Write(0xB201,0x03); |
glansberry | 0:8eab839d7892 | 175 | SharpLCD_Write(0xB202,0x03); |
glansberry | 0:8eab839d7892 | 176 | SharpLCD_Write(0xB800,0x25); |
glansberry | 0:8eab839d7892 | 177 | SharpLCD_Write(0xB801,0x25); |
glansberry | 0:8eab839d7892 | 178 | SharpLCD_Write(0xB802,0x25); |
glansberry | 0:8eab839d7892 | 179 | SharpLCD_Write(0xB300,0x0b); |
glansberry | 0:8eab839d7892 | 180 | SharpLCD_Write(0xB301,0x0b); |
glansberry | 0:8eab839d7892 | 181 | SharpLCD_Write(0xB302,0x0b); |
glansberry | 0:8eab839d7892 | 182 | SharpLCD_Write(0xB900,0x34); |
glansberry | 0:8eab839d7892 | 183 | SharpLCD_Write(0xB901,0x34); |
glansberry | 0:8eab839d7892 | 184 | SharpLCD_Write(0xB902,0x34); |
glansberry | 0:8eab839d7892 | 185 | SharpLCD_Write(0xBF00,0x01); |
glansberry | 0:8eab839d7892 | 186 | SharpLCD_Write(0xB500,0x08); |
glansberry | 0:8eab839d7892 | 187 | SharpLCD_Write(0xB501,0x08); |
glansberry | 0:8eab839d7892 | 188 | SharpLCD_Write(0xB502,0x08); |
glansberry | 0:8eab839d7892 | 189 | SharpLCD_Write(0xBA00,0x24); |
glansberry | 0:8eab839d7892 | 190 | SharpLCD_Write(0xBA01,0x24); |
glansberry | 0:8eab839d7892 | 191 | SharpLCD_Write(0xBA02,0x24); |
glansberry | 0:8eab839d7892 | 192 | SharpLCD_Write(0xB400,0x2D); |
glansberry | 0:8eab839d7892 | 193 | SharpLCD_Write(0xB401,0x2D); |
glansberry | 0:8eab839d7892 | 194 | SharpLCD_Write(0xB402,0x2D); |
glansberry | 0:8eab839d7892 | 195 | SharpLCD_Write(0xBC00,0x00); |
glansberry | 0:8eab839d7892 | 196 | SharpLCD_Write(0xBC01,0x68); |
glansberry | 0:8eab839d7892 | 197 | SharpLCD_Write(0xBC02,0x00); |
glansberry | 0:8eab839d7892 | 198 | SharpLCD_Write(0xBD00,0x00); |
glansberry | 0:8eab839d7892 | 199 | SharpLCD_Write(0xBD01,0x7C); |
glansberry | 0:8eab839d7892 | 200 | SharpLCD_Write(0xBD02,0x00); |
glansberry | 0:8eab839d7892 | 201 | SharpLCD_Write(0xBE00,0x00); |
glansberry | 0:8eab839d7892 | 202 | SharpLCD_Write(0xBE01,0x40); |
glansberry | 0:8eab839d7892 | 203 | SharpLCD_Write(0xF000,0x55); |
glansberry | 0:8eab839d7892 | 204 | SharpLCD_Write(0xF001,0xAA); |
glansberry | 0:8eab839d7892 | 205 | SharpLCD_Write(0xF002,0x52); |
glansberry | 0:8eab839d7892 | 206 | SharpLCD_Write(0xF003,0x01); |
glansberry | 0:8eab839d7892 | 207 | SharpLCD_Write(0xD000,0x0B); |
glansberry | 0:8eab839d7892 | 208 | SharpLCD_Write(0xD001,0x14); |
glansberry | 0:8eab839d7892 | 209 | SharpLCD_Write(0xD002,0x0C); |
glansberry | 0:8eab839d7892 | 210 | SharpLCD_Write(0xD003,0x0E); |
glansberry | 0:8eab839d7892 | 211 | SharpLCD_Write(0xD100,0x00); |
glansberry | 0:8eab839d7892 | 212 | SharpLCD_Write(0xD101,0x37); |
glansberry | 0:8eab839d7892 | 213 | SharpLCD_Write(0xD102,0x00); |
glansberry | 0:8eab839d7892 | 214 | SharpLCD_Write(0xD103,0x4A); |
glansberry | 0:8eab839d7892 | 215 | SharpLCD_Write(0xD104,0x00); |
glansberry | 0:8eab839d7892 | 216 | SharpLCD_Write(0xD105,0x6F); |
glansberry | 0:8eab839d7892 | 217 | SharpLCD_Write(0xD106,0x00); |
glansberry | 0:8eab839d7892 | 218 | SharpLCD_Write(0xD107,0x8D); |
glansberry | 0:8eab839d7892 | 219 | SharpLCD_Write(0xD108,0x00); |
glansberry | 0:8eab839d7892 | 220 | SharpLCD_Write(0xD109,0xAD); |
glansberry | 0:8eab839d7892 | 221 | SharpLCD_Write(0xD10A,0x00); |
glansberry | 0:8eab839d7892 | 222 | SharpLCD_Write(0xD10B,0xDF); |
glansberry | 0:8eab839d7892 | 223 | SharpLCD_Write(0xD10C,0x01); |
glansberry | 0:8eab839d7892 | 224 | SharpLCD_Write(0xD10D,0x11); |
glansberry | 0:8eab839d7892 | 225 | SharpLCD_Write(0xD10E,0x01); |
glansberry | 0:8eab839d7892 | 226 | SharpLCD_Write(0xD10F,0x58); |
glansberry | 0:8eab839d7892 | 227 | SharpLCD_Write(0xD110,0x01); |
glansberry | 0:8eab839d7892 | 228 | SharpLCD_Write(0xD111,0x76); |
glansberry | 0:8eab839d7892 | 229 | SharpLCD_Write(0xD112,0x01); |
glansberry | 0:8eab839d7892 | 230 | SharpLCD_Write(0xD113,0xA6); |
glansberry | 0:8eab839d7892 | 231 | SharpLCD_Write(0xD114,0x01); |
glansberry | 0:8eab839d7892 | 232 | SharpLCD_Write(0xD115,0xCD); |
glansberry | 0:8eab839d7892 | 233 | SharpLCD_Write(0xD116,0x02); |
glansberry | 0:8eab839d7892 | 234 | SharpLCD_Write(0xD117,0x0E); |
glansberry | 0:8eab839d7892 | 235 | SharpLCD_Write(0xD118,0x02); |
glansberry | 0:8eab839d7892 | 236 | SharpLCD_Write(0xD119,0x46); |
glansberry | 0:8eab839d7892 | 237 | SharpLCD_Write(0xD11A,0x02); |
glansberry | 0:8eab839d7892 | 238 | SharpLCD_Write(0xD11B,0x48); |
glansberry | 0:8eab839d7892 | 239 | SharpLCD_Write(0xD11C,0x02); |
glansberry | 0:8eab839d7892 | 240 | SharpLCD_Write(0xD11D,0x78); |
glansberry | 0:8eab839d7892 | 241 | SharpLCD_Write(0xD11E,0x02); |
glansberry | 0:8eab839d7892 | 242 | SharpLCD_Write(0xD11F,0xAC); |
glansberry | 0:8eab839d7892 | 243 | SharpLCD_Write(0xD120,0x02); |
glansberry | 0:8eab839d7892 | 244 | SharpLCD_Write(0xD121,0xCD); |
glansberry | 0:8eab839d7892 | 245 | SharpLCD_Write(0xD122,0x02); |
glansberry | 0:8eab839d7892 | 246 | SharpLCD_Write(0xD123,0xFD); |
glansberry | 0:8eab839d7892 | 247 | SharpLCD_Write(0xD124,0x03); |
glansberry | 0:8eab839d7892 | 248 | SharpLCD_Write(0xD125,0x1F); |
glansberry | 0:8eab839d7892 | 249 | SharpLCD_Write(0xD126,0x03); |
glansberry | 0:8eab839d7892 | 250 | SharpLCD_Write(0xD127,0x4B); |
glansberry | 0:8eab839d7892 | 251 | SharpLCD_Write(0xD128,0x03); |
glansberry | 0:8eab839d7892 | 252 | SharpLCD_Write(0xD129,0x69); |
glansberry | 0:8eab839d7892 | 253 | SharpLCD_Write(0xD12A,0x03); |
glansberry | 0:8eab839d7892 | 254 | SharpLCD_Write(0xD12B,0x8E); |
glansberry | 0:8eab839d7892 | 255 | SharpLCD_Write(0xD12C,0x03); |
glansberry | 0:8eab839d7892 | 256 | SharpLCD_Write(0xD12D,0xA5); |
glansberry | 0:8eab839d7892 | 257 | SharpLCD_Write(0xD12E,0x03); |
glansberry | 0:8eab839d7892 | 258 | SharpLCD_Write(0xD12F,0xCD); |
glansberry | 0:8eab839d7892 | 259 | SharpLCD_Write(0xD130,0x03); |
glansberry | 0:8eab839d7892 | 260 | SharpLCD_Write(0xD131,0xF1); |
glansberry | 0:8eab839d7892 | 261 | SharpLCD_Write(0xD132,0x03); |
glansberry | 0:8eab839d7892 | 262 | SharpLCD_Write(0xD133,0xF1); |
glansberry | 0:8eab839d7892 | 263 | SharpLCD_Write(0xD200,0x00); |
glansberry | 0:8eab839d7892 | 264 | SharpLCD_Write(0xD201,0x37); |
glansberry | 0:8eab839d7892 | 265 | SharpLCD_Write(0xD202,0x00); |
glansberry | 0:8eab839d7892 | 266 | SharpLCD_Write(0xD203,0x4A); |
glansberry | 0:8eab839d7892 | 267 | SharpLCD_Write(0xD204,0x00); |
glansberry | 0:8eab839d7892 | 268 | SharpLCD_Write(0xD205,0x6F); |
glansberry | 0:8eab839d7892 | 269 | SharpLCD_Write(0xD206,0x00); |
glansberry | 0:8eab839d7892 | 270 | SharpLCD_Write(0xD207,0x8D); |
glansberry | 0:8eab839d7892 | 271 | SharpLCD_Write(0xD208,0x00); |
glansberry | 0:8eab839d7892 | 272 | SharpLCD_Write(0xD209,0xAD); |
glansberry | 0:8eab839d7892 | 273 | SharpLCD_Write(0xD20A,0x00); |
glansberry | 0:8eab839d7892 | 274 | SharpLCD_Write(0xD20B,0xDF); |
glansberry | 0:8eab839d7892 | 275 | SharpLCD_Write(0xD20C,0x01); |
glansberry | 0:8eab839d7892 | 276 | SharpLCD_Write(0xD20D,0x11); |
glansberry | 0:8eab839d7892 | 277 | SharpLCD_Write(0xD20E,0x01); |
glansberry | 0:8eab839d7892 | 278 | SharpLCD_Write(0xD20F,0x58); |
glansberry | 0:8eab839d7892 | 279 | SharpLCD_Write(0xD210,0x01); |
glansberry | 0:8eab839d7892 | 280 | SharpLCD_Write(0xD211,0x76); |
glansberry | 0:8eab839d7892 | 281 | SharpLCD_Write(0xD212,0x01); |
glansberry | 0:8eab839d7892 | 282 | SharpLCD_Write(0xD213,0xA6); |
glansberry | 0:8eab839d7892 | 283 | SharpLCD_Write(0xD214,0x01); |
glansberry | 0:8eab839d7892 | 284 | SharpLCD_Write(0xD215,0xCD); |
glansberry | 0:8eab839d7892 | 285 | SharpLCD_Write(0xD216,0x02); |
glansberry | 0:8eab839d7892 | 286 | SharpLCD_Write(0xD217,0x0E); |
glansberry | 0:8eab839d7892 | 287 | SharpLCD_Write(0xD218,0x02); |
glansberry | 0:8eab839d7892 | 288 | SharpLCD_Write(0xD219,0x46); |
glansberry | 0:8eab839d7892 | 289 | SharpLCD_Write(0xD21A,0x02); |
glansberry | 0:8eab839d7892 | 290 | SharpLCD_Write(0xD21B,0x48); |
glansberry | 0:8eab839d7892 | 291 | SharpLCD_Write(0xD21C,0x02); |
glansberry | 0:8eab839d7892 | 292 | SharpLCD_Write(0xD21D,0x78); |
glansberry | 0:8eab839d7892 | 293 | SharpLCD_Write(0xD21E,0x02); |
glansberry | 0:8eab839d7892 | 294 | SharpLCD_Write(0xD21F,0xAC); |
glansberry | 0:8eab839d7892 | 295 | SharpLCD_Write(0xD220,0x02); |
glansberry | 0:8eab839d7892 | 296 | SharpLCD_Write(0xD221,0xCD); |
glansberry | 0:8eab839d7892 | 297 | SharpLCD_Write(0xD222,0x02); |
glansberry | 0:8eab839d7892 | 298 | SharpLCD_Write(0xD223,0xFD); |
glansberry | 0:8eab839d7892 | 299 | SharpLCD_Write(0xD224,0x03); |
glansberry | 0:8eab839d7892 | 300 | SharpLCD_Write(0xD225,0x1F); |
glansberry | 0:8eab839d7892 | 301 | SharpLCD_Write(0xD226,0x03); |
glansberry | 0:8eab839d7892 | 302 | SharpLCD_Write(0xD227,0x4B); |
glansberry | 0:8eab839d7892 | 303 | SharpLCD_Write(0xD228,0x03); |
glansberry | 0:8eab839d7892 | 304 | SharpLCD_Write(0xD229,0x69); |
glansberry | 0:8eab839d7892 | 305 | SharpLCD_Write(0xD22A,0x03); |
glansberry | 0:8eab839d7892 | 306 | SharpLCD_Write(0xD22B,0x8E); |
glansberry | 0:8eab839d7892 | 307 | SharpLCD_Write(0xD22C,0x03); |
glansberry | 0:8eab839d7892 | 308 | SharpLCD_Write(0xD22D,0xA5); |
glansberry | 0:8eab839d7892 | 309 | SharpLCD_Write(0xD22E,0x03); |
glansberry | 0:8eab839d7892 | 310 | SharpLCD_Write(0xD22F,0xCD); |
glansberry | 0:8eab839d7892 | 311 | SharpLCD_Write(0xD230,0x03); |
glansberry | 0:8eab839d7892 | 312 | SharpLCD_Write(0xD231,0xF1); |
glansberry | 0:8eab839d7892 | 313 | SharpLCD_Write(0xD232,0x03); |
glansberry | 0:8eab839d7892 | 314 | SharpLCD_Write(0xD233,0xF1); |
glansberry | 0:8eab839d7892 | 315 | SharpLCD_Write(0xD300,0x00); |
glansberry | 0:8eab839d7892 | 316 | SharpLCD_Write(0xD301,0x37); |
glansberry | 0:8eab839d7892 | 317 | SharpLCD_Write(0xD302,0x00); |
glansberry | 0:8eab839d7892 | 318 | SharpLCD_Write(0xD303,0x4A); |
glansberry | 0:8eab839d7892 | 319 | SharpLCD_Write(0xD304,0x00); |
glansberry | 0:8eab839d7892 | 320 | SharpLCD_Write(0xD305,0x6F); |
glansberry | 0:8eab839d7892 | 321 | SharpLCD_Write(0xD306,0x00); |
glansberry | 0:8eab839d7892 | 322 | SharpLCD_Write(0xD307,0x8D); |
glansberry | 0:8eab839d7892 | 323 | SharpLCD_Write(0xD308,0x00); |
glansberry | 0:8eab839d7892 | 324 | SharpLCD_Write(0xD309,0xAD); |
glansberry | 0:8eab839d7892 | 325 | SharpLCD_Write(0xD30A,0x00); |
glansberry | 0:8eab839d7892 | 326 | SharpLCD_Write(0xD30B,0xDF); |
glansberry | 0:8eab839d7892 | 327 | SharpLCD_Write(0xD30C,0x01); |
glansberry | 0:8eab839d7892 | 328 | SharpLCD_Write(0xD30D,0x11); |
glansberry | 0:8eab839d7892 | 329 | SharpLCD_Write(0xD30E,0x01); |
glansberry | 0:8eab839d7892 | 330 | SharpLCD_Write(0xD30F,0x58); |
glansberry | 0:8eab839d7892 | 331 | SharpLCD_Write(0xD310,0x01); |
glansberry | 0:8eab839d7892 | 332 | SharpLCD_Write(0xD311,0x76); |
glansberry | 0:8eab839d7892 | 333 | SharpLCD_Write(0xD312,0x01); |
glansberry | 0:8eab839d7892 | 334 | SharpLCD_Write(0xD313,0xA6); |
glansberry | 0:8eab839d7892 | 335 | SharpLCD_Write(0xD314,0x01); |
glansberry | 0:8eab839d7892 | 336 | SharpLCD_Write(0xD315,0xCD); |
glansberry | 0:8eab839d7892 | 337 | SharpLCD_Write(0xD316,0x02); |
glansberry | 0:8eab839d7892 | 338 | SharpLCD_Write(0xD317,0x0E); |
glansberry | 0:8eab839d7892 | 339 | SharpLCD_Write(0xD318,0x02); |
glansberry | 0:8eab839d7892 | 340 | SharpLCD_Write(0xD319,0x46); |
glansberry | 0:8eab839d7892 | 341 | SharpLCD_Write(0xD31A,0x02); |
glansberry | 0:8eab839d7892 | 342 | SharpLCD_Write(0xD31B,0x48); |
glansberry | 0:8eab839d7892 | 343 | SharpLCD_Write(0xD31C,0x02); |
glansberry | 0:8eab839d7892 | 344 | SharpLCD_Write(0xD31D,0x78); |
glansberry | 0:8eab839d7892 | 345 | SharpLCD_Write(0xD31E,0x02); |
glansberry | 0:8eab839d7892 | 346 | SharpLCD_Write(0xD31F,0xAC); |
glansberry | 0:8eab839d7892 | 347 | SharpLCD_Write(0xD320,0x02); |
glansberry | 0:8eab839d7892 | 348 | SharpLCD_Write(0xD321,0xCD); |
glansberry | 0:8eab839d7892 | 349 | SharpLCD_Write(0xD322,0x02); |
glansberry | 0:8eab839d7892 | 350 | SharpLCD_Write(0xD323,0xFD); |
glansberry | 0:8eab839d7892 | 351 | SharpLCD_Write(0xD324,0x03); |
glansberry | 0:8eab839d7892 | 352 | SharpLCD_Write(0xD325,0x1F); |
glansberry | 0:8eab839d7892 | 353 | SharpLCD_Write(0xD326,0x03); |
glansberry | 0:8eab839d7892 | 354 | SharpLCD_Write(0xD327,0x4B); |
glansberry | 0:8eab839d7892 | 355 | SharpLCD_Write(0xD328,0x03); |
glansberry | 0:8eab839d7892 | 356 | SharpLCD_Write(0xD329,0x69); |
glansberry | 0:8eab839d7892 | 357 | SharpLCD_Write(0xD32A,0x03); |
glansberry | 0:8eab839d7892 | 358 | SharpLCD_Write(0xD32B,0x8E); |
glansberry | 0:8eab839d7892 | 359 | SharpLCD_Write(0xD32C,0x03); |
glansberry | 0:8eab839d7892 | 360 | SharpLCD_Write(0xD32D,0xA5); |
glansberry | 0:8eab839d7892 | 361 | SharpLCD_Write(0xD32E,0x03); |
glansberry | 0:8eab839d7892 | 362 | SharpLCD_Write(0xD32F,0xCD); |
glansberry | 0:8eab839d7892 | 363 | SharpLCD_Write(0xD330,0x03); |
glansberry | 0:8eab839d7892 | 364 | SharpLCD_Write(0xD331,0xF1); |
glansberry | 0:8eab839d7892 | 365 | SharpLCD_Write(0xD332,0x03); |
glansberry | 0:8eab839d7892 | 366 | SharpLCD_Write(0xD333,0xF1); |
glansberry | 0:8eab839d7892 | 367 | SharpLCD_Write(0xD400,0x00); |
glansberry | 0:8eab839d7892 | 368 | SharpLCD_Write(0xD401,0x37); |
glansberry | 0:8eab839d7892 | 369 | SharpLCD_Write(0xD402,0x00); |
glansberry | 0:8eab839d7892 | 370 | SharpLCD_Write(0xD403,0x4A); |
glansberry | 0:8eab839d7892 | 371 | SharpLCD_Write(0xD404,0x00); |
glansberry | 0:8eab839d7892 | 372 | SharpLCD_Write(0xD405,0x6F); |
glansberry | 0:8eab839d7892 | 373 | SharpLCD_Write(0xD406,0x00); |
glansberry | 0:8eab839d7892 | 374 | SharpLCD_Write(0xD407,0x8D); |
glansberry | 0:8eab839d7892 | 375 | SharpLCD_Write(0xD408,0x00); |
glansberry | 0:8eab839d7892 | 376 | SharpLCD_Write(0xD409,0xAD); |
glansberry | 0:8eab839d7892 | 377 | SharpLCD_Write(0xD40A,0x00); |
glansberry | 0:8eab839d7892 | 378 | SharpLCD_Write(0xD40B,0xDF); |
glansberry | 0:8eab839d7892 | 379 | SharpLCD_Write(0xD40C,0x01); |
glansberry | 0:8eab839d7892 | 380 | SharpLCD_Write(0xD40D,0x11); |
glansberry | 0:8eab839d7892 | 381 | SharpLCD_Write(0xD40E,0x01); |
glansberry | 0:8eab839d7892 | 382 | SharpLCD_Write(0xD40F,0x58); |
glansberry | 0:8eab839d7892 | 383 | SharpLCD_Write(0xD410,0x01); |
glansberry | 0:8eab839d7892 | 384 | SharpLCD_Write(0xD411,0x76); |
glansberry | 0:8eab839d7892 | 385 | SharpLCD_Write(0xD412,0x01); |
glansberry | 0:8eab839d7892 | 386 | SharpLCD_Write(0xD413,0xA6); |
glansberry | 0:8eab839d7892 | 387 | SharpLCD_Write(0xD414,0x01); |
glansberry | 0:8eab839d7892 | 388 | SharpLCD_Write(0xD415,0xCD); |
glansberry | 0:8eab839d7892 | 389 | SharpLCD_Write(0xD416,0x02); |
glansberry | 0:8eab839d7892 | 390 | SharpLCD_Write(0xD417,0x0E); |
glansberry | 0:8eab839d7892 | 391 | SharpLCD_Write(0xD418,0x02); |
glansberry | 0:8eab839d7892 | 392 | SharpLCD_Write(0xD419,0x46); |
glansberry | 0:8eab839d7892 | 393 | SharpLCD_Write(0xD41A,0x02); |
glansberry | 0:8eab839d7892 | 394 | SharpLCD_Write(0xD41B,0x48); |
glansberry | 0:8eab839d7892 | 395 | SharpLCD_Write(0xD41C,0x02); |
glansberry | 0:8eab839d7892 | 396 | SharpLCD_Write(0xD41D,0x78); |
glansberry | 0:8eab839d7892 | 397 | SharpLCD_Write(0xD41E,0x02); |
glansberry | 0:8eab839d7892 | 398 | SharpLCD_Write(0xD41F,0xAC); |
glansberry | 0:8eab839d7892 | 399 | SharpLCD_Write(0xD420,0x02); |
glansberry | 0:8eab839d7892 | 400 | SharpLCD_Write(0xD421,0xCD); |
glansberry | 0:8eab839d7892 | 401 | SharpLCD_Write(0xD422,0x02); |
glansberry | 0:8eab839d7892 | 402 | SharpLCD_Write(0xD423,0xFD); |
glansberry | 0:8eab839d7892 | 403 | SharpLCD_Write(0xD424,0x03); |
glansberry | 0:8eab839d7892 | 404 | SharpLCD_Write(0xD425,0x1F); |
glansberry | 0:8eab839d7892 | 405 | SharpLCD_Write(0xD426,0x03); |
glansberry | 0:8eab839d7892 | 406 | SharpLCD_Write(0xD427,0x4B); |
glansberry | 0:8eab839d7892 | 407 | SharpLCD_Write(0xD428,0x03); |
glansberry | 0:8eab839d7892 | 408 | SharpLCD_Write(0xD429,0x69); |
glansberry | 0:8eab839d7892 | 409 | SharpLCD_Write(0xD42A,0x03); |
glansberry | 0:8eab839d7892 | 410 | SharpLCD_Write(0xD42B,0x8E); |
glansberry | 0:8eab839d7892 | 411 | SharpLCD_Write(0xD42C,0x03); |
glansberry | 0:8eab839d7892 | 412 | SharpLCD_Write(0xD42D,0xA5); |
glansberry | 0:8eab839d7892 | 413 | SharpLCD_Write(0xD42E,0x03); |
glansberry | 0:8eab839d7892 | 414 | SharpLCD_Write(0xD42F,0xCD); |
glansberry | 0:8eab839d7892 | 415 | SharpLCD_Write(0xD430,0x03); |
glansberry | 0:8eab839d7892 | 416 | SharpLCD_Write(0xD431,0xF1); |
glansberry | 0:8eab839d7892 | 417 | SharpLCD_Write(0xD432,0x03); |
glansberry | 0:8eab839d7892 | 418 | SharpLCD_Write(0xD433,0xF1); |
glansberry | 0:8eab839d7892 | 419 | SharpLCD_Write(0xD500,0x00); |
glansberry | 0:8eab839d7892 | 420 | SharpLCD_Write(0xD501,0x37); |
glansberry | 0:8eab839d7892 | 421 | SharpLCD_Write(0xD502,0x00); |
glansberry | 0:8eab839d7892 | 422 | SharpLCD_Write(0xD503,0x4A); |
glansberry | 0:8eab839d7892 | 423 | SharpLCD_Write(0xD504,0x00); |
glansberry | 0:8eab839d7892 | 424 | SharpLCD_Write(0xD505,0x6F); |
glansberry | 0:8eab839d7892 | 425 | SharpLCD_Write(0xD506,0x00); |
glansberry | 0:8eab839d7892 | 426 | SharpLCD_Write(0xD507,0x8D); |
glansberry | 0:8eab839d7892 | 427 | SharpLCD_Write(0xD508,0x00); |
glansberry | 0:8eab839d7892 | 428 | SharpLCD_Write(0xD509,0xAD); |
glansberry | 0:8eab839d7892 | 429 | SharpLCD_Write(0xD50A,0x00); |
glansberry | 0:8eab839d7892 | 430 | SharpLCD_Write(0xD50B,0xDF); |
glansberry | 0:8eab839d7892 | 431 | SharpLCD_Write(0xD50C,0x01); |
glansberry | 0:8eab839d7892 | 432 | SharpLCD_Write(0xD50D,0x11); |
glansberry | 0:8eab839d7892 | 433 | SharpLCD_Write(0xD50E,0x01); |
glansberry | 0:8eab839d7892 | 434 | SharpLCD_Write(0xD50F,0x58); |
glansberry | 0:8eab839d7892 | 435 | SharpLCD_Write(0xD510,0x01); |
glansberry | 0:8eab839d7892 | 436 | SharpLCD_Write(0xD511,0x76); |
glansberry | 0:8eab839d7892 | 437 | SharpLCD_Write(0xD512,0x01); |
glansberry | 0:8eab839d7892 | 438 | SharpLCD_Write(0xD513,0xA6); |
glansberry | 0:8eab839d7892 | 439 | SharpLCD_Write(0xD514,0x01); |
glansberry | 0:8eab839d7892 | 440 | SharpLCD_Write(0xD515,0xCD); |
glansberry | 0:8eab839d7892 | 441 | SharpLCD_Write(0xD516,0x02); |
glansberry | 0:8eab839d7892 | 442 | SharpLCD_Write(0xD517,0x0E); |
glansberry | 0:8eab839d7892 | 443 | SharpLCD_Write(0xD518,0x02); |
glansberry | 0:8eab839d7892 | 444 | SharpLCD_Write(0xD519,0x46); |
glansberry | 0:8eab839d7892 | 445 | SharpLCD_Write(0xD51A,0x02); |
glansberry | 0:8eab839d7892 | 446 | SharpLCD_Write(0xD51B,0x48); |
glansberry | 0:8eab839d7892 | 447 | SharpLCD_Write(0xD51C,0x02); |
glansberry | 0:8eab839d7892 | 448 | SharpLCD_Write(0xD51D,0x78); |
glansberry | 0:8eab839d7892 | 449 | SharpLCD_Write(0xD51E,0x02); |
glansberry | 0:8eab839d7892 | 450 | SharpLCD_Write(0xD51F,0xAC); |
glansberry | 0:8eab839d7892 | 451 | SharpLCD_Write(0xD520,0x02); |
glansberry | 0:8eab839d7892 | 452 | SharpLCD_Write(0xD521,0xCD); |
glansberry | 0:8eab839d7892 | 453 | SharpLCD_Write(0xD522,0x02); |
glansberry | 0:8eab839d7892 | 454 | SharpLCD_Write(0xD523,0xFD); |
glansberry | 0:8eab839d7892 | 455 | SharpLCD_Write(0xD524,0x03); |
glansberry | 0:8eab839d7892 | 456 | SharpLCD_Write(0xD525,0x1F); |
glansberry | 0:8eab839d7892 | 457 | SharpLCD_Write(0xD526,0x03); |
glansberry | 0:8eab839d7892 | 458 | SharpLCD_Write(0xD527,0x4B); |
glansberry | 0:8eab839d7892 | 459 | SharpLCD_Write(0xD528,0x03); |
glansberry | 0:8eab839d7892 | 460 | SharpLCD_Write(0xD529,0x69); |
glansberry | 0:8eab839d7892 | 461 | SharpLCD_Write(0xD52A,0x03); |
glansberry | 0:8eab839d7892 | 462 | SharpLCD_Write(0xD52B,0x8E); |
glansberry | 0:8eab839d7892 | 463 | SharpLCD_Write(0xD52C,0x03); |
glansberry | 0:8eab839d7892 | 464 | SharpLCD_Write(0xD52D,0xA5); |
glansberry | 0:8eab839d7892 | 465 | SharpLCD_Write(0xD52E,0x03); |
glansberry | 0:8eab839d7892 | 466 | SharpLCD_Write(0xD52F,0xCD); |
glansberry | 0:8eab839d7892 | 467 | SharpLCD_Write(0xD530,0x03); |
glansberry | 0:8eab839d7892 | 468 | SharpLCD_Write(0xD531,0xF1); |
glansberry | 0:8eab839d7892 | 469 | SharpLCD_Write(0xD532,0x03); |
glansberry | 0:8eab839d7892 | 470 | SharpLCD_Write(0xD533,0xF1); |
glansberry | 0:8eab839d7892 | 471 | SharpLCD_Write(0xD600,0x00); |
glansberry | 0:8eab839d7892 | 472 | SharpLCD_Write(0xD601,0x37); |
glansberry | 0:8eab839d7892 | 473 | SharpLCD_Write(0xD602,0x00); |
glansberry | 0:8eab839d7892 | 474 | SharpLCD_Write(0xD603,0x4A); |
glansberry | 0:8eab839d7892 | 475 | SharpLCD_Write(0xD604,0x00); |
glansberry | 0:8eab839d7892 | 476 | SharpLCD_Write(0xD605,0x6F); |
glansberry | 0:8eab839d7892 | 477 | SharpLCD_Write(0xD606,0x00); |
glansberry | 0:8eab839d7892 | 478 | SharpLCD_Write(0xD607,0x8D); |
glansberry | 0:8eab839d7892 | 479 | SharpLCD_Write(0xD608,0x00); |
glansberry | 0:8eab839d7892 | 480 | SharpLCD_Write(0xD609,0xAD); |
glansberry | 0:8eab839d7892 | 481 | SharpLCD_Write(0xD60A,0x00); |
glansberry | 0:8eab839d7892 | 482 | SharpLCD_Write(0xD60B,0xDF); |
glansberry | 0:8eab839d7892 | 483 | SharpLCD_Write(0xD60C,0x01); |
glansberry | 0:8eab839d7892 | 484 | SharpLCD_Write(0xD60D,0x11); |
glansberry | 0:8eab839d7892 | 485 | SharpLCD_Write(0xD60E,0x01); |
glansberry | 0:8eab839d7892 | 486 | SharpLCD_Write(0xD60F,0x58); |
glansberry | 0:8eab839d7892 | 487 | SharpLCD_Write(0xD610,0x01); |
glansberry | 0:8eab839d7892 | 488 | SharpLCD_Write(0xD611,0x76); |
glansberry | 0:8eab839d7892 | 489 | SharpLCD_Write(0xD612,0x01); |
glansberry | 0:8eab839d7892 | 490 | SharpLCD_Write(0xD613,0xA6); |
glansberry | 0:8eab839d7892 | 491 | SharpLCD_Write(0xD614,0x01); |
glansberry | 0:8eab839d7892 | 492 | SharpLCD_Write(0xD615,0xCD); |
glansberry | 0:8eab839d7892 | 493 | SharpLCD_Write(0xD616,0x02); |
glansberry | 0:8eab839d7892 | 494 | SharpLCD_Write(0xD617,0x0E); |
glansberry | 0:8eab839d7892 | 495 | SharpLCD_Write(0xD618,0x02); |
glansberry | 0:8eab839d7892 | 496 | SharpLCD_Write(0xD619,0x46); |
glansberry | 0:8eab839d7892 | 497 | SharpLCD_Write(0xD61A,0x02); |
glansberry | 0:8eab839d7892 | 498 | SharpLCD_Write(0xD61B,0x48); |
glansberry | 0:8eab839d7892 | 499 | SharpLCD_Write(0xD61C,0x02); |
glansberry | 0:8eab839d7892 | 500 | SharpLCD_Write(0xD61D,0x78); |
glansberry | 0:8eab839d7892 | 501 | SharpLCD_Write(0xD61E,0x02); |
glansberry | 0:8eab839d7892 | 502 | SharpLCD_Write(0xD61F,0xAC); |
glansberry | 0:8eab839d7892 | 503 | SharpLCD_Write(0xD620,0x02); |
glansberry | 0:8eab839d7892 | 504 | SharpLCD_Write(0xD621,0xCD); |
glansberry | 0:8eab839d7892 | 505 | SharpLCD_Write(0xD622,0x02); |
glansberry | 0:8eab839d7892 | 506 | SharpLCD_Write(0xD623,0xFD); |
glansberry | 0:8eab839d7892 | 507 | SharpLCD_Write(0xD624,0x03); |
glansberry | 0:8eab839d7892 | 508 | SharpLCD_Write(0xD625,0x1F); |
glansberry | 0:8eab839d7892 | 509 | SharpLCD_Write(0xD626,0x03); |
glansberry | 0:8eab839d7892 | 510 | SharpLCD_Write(0xD627,0x4B); |
glansberry | 0:8eab839d7892 | 511 | SharpLCD_Write(0xD628,0x03); |
glansberry | 0:8eab839d7892 | 512 | SharpLCD_Write(0xD629,0x69); |
glansberry | 0:8eab839d7892 | 513 | SharpLCD_Write(0xD62A,0x03); |
glansberry | 0:8eab839d7892 | 514 | SharpLCD_Write(0xD62B,0x8E); |
glansberry | 0:8eab839d7892 | 515 | SharpLCD_Write(0xD62C,0x03); |
glansberry | 0:8eab839d7892 | 516 | SharpLCD_Write(0xD62D,0xA5); |
glansberry | 0:8eab839d7892 | 517 | SharpLCD_Write(0xD62E,0x03); |
glansberry | 0:8eab839d7892 | 518 | SharpLCD_Write(0xD62F,0xCD); |
glansberry | 0:8eab839d7892 | 519 | SharpLCD_Write(0xD630,0x03); |
glansberry | 0:8eab839d7892 | 520 | SharpLCD_Write(0xD631,0xF1); |
glansberry | 0:8eab839d7892 | 521 | SharpLCD_Write(0xD632,0x03); |
glansberry | 0:8eab839d7892 | 522 | SharpLCD_Write(0xD633,0xF1); |
glansberry | 0:8eab839d7892 | 523 | SharpLCD_Write(0xF000,0x55); |
glansberry | 0:8eab839d7892 | 524 | SharpLCD_Write(0xF001,0xAA); |
glansberry | 0:8eab839d7892 | 525 | SharpLCD_Write(0xF002,0x52); |
glansberry | 0:8eab839d7892 | 526 | SharpLCD_Write(0xF003,0x08); |
glansberry | 0:8eab839d7892 | 527 | SharpLCD_Write(0xF004,0x00); |
glansberry | 0:8eab839d7892 | 528 | SharpLCD_Write(0xB400,0x10); |
glansberry | 0:8eab839d7892 | 529 | SharpLCD_Write(0x3A00,0x77); |
glansberry | 0:8eab839d7892 | 530 | SharpLCD_Write(0xB101,0x00); |
glansberry | 0:8eab839d7892 | 531 | SharpLCD_WriteAddress((LCD_SLEEP_OUT<<8)&0xFF00); |
glansberry | 0:8eab839d7892 | 532 | wait_ms(100); |
glansberry | 0:8eab839d7892 | 533 | SharpLCD_WriteAddress((LCD_DISPLAY_ON<<8)&0xFF00); |
glansberry | 0:8eab839d7892 | 534 | wait_ms(100); |
glansberry | 0:8eab839d7892 | 535 | |
glansberry | 0:8eab839d7892 | 536 | } |
glansberry | 0:8eab839d7892 | 537 | |
glansberry | 0:8eab839d7892 | 538 | |
glansberry | 0:8eab839d7892 | 539 | |
glansberry | 0:8eab839d7892 | 540 | void SharpHeaderFileInit(void) //this is the function version of the header I received from Scott Bradley |
glansberry | 0:8eab839d7892 | 541 | { |
glansberry | 0:8eab839d7892 | 542 | SharpLCD_Write(0xFF00, 0xAA); |
glansberry | 0:8eab839d7892 | 543 | SharpLCD_Write(0xFF01, 0x55); |
glansberry | 0:8eab839d7892 | 544 | SharpLCD_Write(0xFF02, 0x25); |
glansberry | 0:8eab839d7892 | 545 | SharpLCD_Write(0xFF03, 0x1); |
glansberry | 0:8eab839d7892 | 546 | SharpLCD_Write(0xF300, 0x0); |
glansberry | 0:8eab839d7892 | 547 | SharpLCD_Write(0xF301, 0x32); |
glansberry | 0:8eab839d7892 | 548 | SharpLCD_Write(0xF302, 0x0); |
glansberry | 0:8eab839d7892 | 549 | SharpLCD_Write(0xF303, 0x38); |
glansberry | 0:8eab839d7892 | 550 | SharpLCD_Write(0xF304, 0x31); |
glansberry | 0:8eab839d7892 | 551 | SharpLCD_Write(0xF305, 0x8); |
glansberry | 0:8eab839d7892 | 552 | SharpLCD_Write(0xF306, 0x11); |
glansberry | 0:8eab839d7892 | 553 | SharpLCD_Write(0xF307, 0x0); |
glansberry | 0:8eab839d7892 | 554 | SharpLCD_Write(0xF000, 0x55); |
glansberry | 0:8eab839d7892 | 555 | SharpLCD_Write(0xF001, 0xAA); |
glansberry | 0:8eab839d7892 | 556 | SharpLCD_Write(0xF002, 0x52); |
glansberry | 0:8eab839d7892 | 557 | SharpLCD_Write(0xF003, 0x8); |
glansberry | 0:8eab839d7892 | 558 | SharpLCD_Write(0xF004, 0x0); |
glansberry | 0:8eab839d7892 | 559 | SharpLCD_Write(0xB000, 0x0); |
glansberry | 0:8eab839d7892 | 560 | SharpLCD_Write(0xB001, 0x5); |
glansberry | 0:8eab839d7892 | 561 | SharpLCD_Write(0xB002, 0x2); |
glansberry | 0:8eab839d7892 | 562 | SharpLCD_Write(0xB003, 0x5); |
glansberry | 0:8eab839d7892 | 563 | SharpLCD_Write(0xB004, 0x2); |
glansberry | 0:8eab839d7892 | 564 | SharpLCD_Write(0xB300, 0x0); |
glansberry | 0:8eab839d7892 | 565 | SharpLCD_Write(0xB600, 0xA); |
glansberry | 0:8eab839d7892 | 566 | SharpLCD_Write(0xB700, 0x0); |
glansberry | 0:8eab839d7892 | 567 | SharpLCD_Write(0xB701, 0x0); |
glansberry | 0:8eab839d7892 | 568 | SharpLCD_Write(0xB800, 0x1); |
glansberry | 0:8eab839d7892 | 569 | SharpLCD_Write(0xB801, 0x5); |
glansberry | 0:8eab839d7892 | 570 | SharpLCD_Write(0xB802, 0x5); |
glansberry | 0:8eab839d7892 | 571 | SharpLCD_Write(0x803, 0x5); |
glansberry | 0:8eab839d7892 | 572 | SharpLCD_Write(0xBC00, 0x0); |
glansberry | 0:8eab839d7892 | 573 | SharpLCD_Write(0xBC01, 0xC8); |
glansberry | 0:8eab839d7892 | 574 | SharpLCD_Write(0xBC02, 0x0); |
glansberry | 0:8eab839d7892 | 575 | SharpLCD_Write(0xBD00, 0x1); |
glansberry | 0:8eab839d7892 | 576 | SharpLCD_Write(0xBD01, 0x84); |
glansberry | 0:8eab839d7892 | 577 | SharpLCD_Write(0xBD02, 0x6); |
glansberry | 0:8eab839d7892 | 578 | SharpLCD_Write(0xBD03, 0x50); |
glansberry | 0:8eab839d7892 | 579 | SharpLCD_Write(0xBD04, 0x0); |
glansberry | 0:8eab839d7892 | 580 | SharpLCD_Write(0xCC00, 0x3); |
glansberry | 0:8eab839d7892 | 581 | SharpLCD_Write(0xCC01, 0x0); |
glansberry | 0:8eab839d7892 | 582 | SharpLCD_Write(0xCC02, 0x0); |
glansberry | 0:8eab839d7892 | 583 | SharpLCD_Write(0xF000, 0x55); |
glansberry | 0:8eab839d7892 | 584 | SharpLCD_Write(0xF001, 0xAA); |
glansberry | 0:8eab839d7892 | 585 | SharpLCD_Write(0xF002, 0x52); |
glansberry | 0:8eab839d7892 | 586 | SharpLCD_Write(0xF003, 0x8); |
glansberry | 0:8eab839d7892 | 587 | SharpLCD_Write(0xF004, 0x1); |
glansberry | 0:8eab839d7892 | 588 | SharpLCD_Write(0xB000, 0x5); |
glansberry | 0:8eab839d7892 | 589 | SharpLCD_Write(0xB001, 0x5); |
glansberry | 0:8eab839d7892 | 590 | SharpLCD_Write(0xB002, 0x5); |
glansberry | 0:8eab839d7892 | 591 | SharpLCD_Write(0xB100, 0x5); |
glansberry | 0:8eab839d7892 | 592 | SharpLCD_Write(0xB101, 0x5); |
glansberry | 0:8eab839d7892 | 593 | SharpLCD_Write(0xB102, 0x5); |
glansberry | 0:8eab839d7892 | 594 | SharpLCD_Write(0xB200, 0x3); |
glansberry | 0:8eab839d7892 | 595 | SharpLCD_Write(0xB201, 0x3); |
glansberry | 0:8eab839d7892 | 596 | SharpLCD_Write(0xB202, 0x3); |
glansberry | 0:8eab839d7892 | 597 | SharpLCD_Write(0xB800, 0x25); |
glansberry | 0:8eab839d7892 | 598 | SharpLCD_Write(0xB801, 0x25); |
glansberry | 0:8eab839d7892 | 599 | SharpLCD_Write(0xB802, 0x25); |
glansberry | 0:8eab839d7892 | 600 | SharpLCD_Write(0xB300, 0x9); |
glansberry | 0:8eab839d7892 | 601 | SharpLCD_Write(0xB301, 0x9); |
glansberry | 0:8eab839d7892 | 602 | SharpLCD_Write(0xB302, 0x9); |
glansberry | 0:8eab839d7892 | 603 | SharpLCD_Write(0xB900, 0x34); |
glansberry | 0:8eab839d7892 | 604 | SharpLCD_Write(0xB901, 0x34); |
glansberry | 0:8eab839d7892 | 605 | SharpLCD_Write(0xB902, 0x34); |
glansberry | 0:8eab839d7892 | 606 | SharpLCD_Write(0xBF00, 0x1); |
glansberry | 0:8eab839d7892 | 607 | SharpLCD_Write(0xB500, 0xA); |
glansberry | 0:8eab839d7892 | 608 | SharpLCD_Write(0xB501, 0xA); |
glansberry | 0:8eab839d7892 | 609 | SharpLCD_Write(0xB502, 0xA); |
glansberry | 0:8eab839d7892 | 610 | SharpLCD_Write(0xBA00, 0x24); |
glansberry | 0:8eab839d7892 | 611 | SharpLCD_Write(0xBA01, 0x24); |
glansberry | 0:8eab839d7892 | 612 | SharpLCD_Write(0xBA02, 0x24); |
glansberry | 0:8eab839d7892 | 613 | SharpLCD_Write(0xB400, 0x2D); |
glansberry | 0:8eab839d7892 | 614 | SharpLCD_Write(0xB401, 0x2D); |
glansberry | 0:8eab839d7892 | 615 | SharpLCD_Write(0xB402, 0x2D); |
glansberry | 0:8eab839d7892 | 616 | SharpLCD_Write(0xBC00, 0x0); |
glansberry | 0:8eab839d7892 | 617 | SharpLCD_Write(0xBC01, 0x68); |
glansberry | 0:8eab839d7892 | 618 | SharpLCD_Write(0xBC02, 0x0); |
glansberry | 0:8eab839d7892 | 619 | SharpLCD_Write(0xBD00, 0x0); |
glansberry | 0:8eab839d7892 | 620 | SharpLCD_Write(0xBD01, 0x7C); |
glansberry | 0:8eab839d7892 | 621 | SharpLCD_Write(0xBD02, 0x0); |
glansberry | 0:8eab839d7892 | 622 | SharpLCD_Write(0xBE00, 0x0); |
glansberry | 0:8eab839d7892 | 623 | SharpLCD_Write(0xBE01, 0x70); |
glansberry | 0:8eab839d7892 | 624 | SharpLCD_Write(0xF000, 0x55); |
glansberry | 0:8eab839d7892 | 625 | SharpLCD_Write(0xF001, 0xAA); |
glansberry | 0:8eab839d7892 | 626 | SharpLCD_Write(0xF002, 0x52); |
glansberry | 0:8eab839d7892 | 627 | SharpLCD_Write(0xF003, 0x1); |
glansberry | 0:8eab839d7892 | 628 | SharpLCD_Write(0xD000, 0xB); |
glansberry | 0:8eab839d7892 | 629 | SharpLCD_Write(0xD001, 0x14); |
glansberry | 0:8eab839d7892 | 630 | SharpLCD_Write(0xD002, 0xC); |
glansberry | 0:8eab839d7892 | 631 | SharpLCD_Write(0xD003, 0xE); |
glansberry | 0:8eab839d7892 | 632 | SharpLCD_Write(0xD100, 0x0); |
glansberry | 0:8eab839d7892 | 633 | SharpLCD_Write(0xD101, 0x37); |
glansberry | 0:8eab839d7892 | 634 | SharpLCD_Write(0xD102, 0x0); |
glansberry | 0:8eab839d7892 | 635 | SharpLCD_Write(0xD103, 0x4A); |
glansberry | 0:8eab839d7892 | 636 | SharpLCD_Write(0xD104, 0x0); |
glansberry | 0:8eab839d7892 | 637 | SharpLCD_Write(0xD105, 0x6F); |
glansberry | 0:8eab839d7892 | 638 | SharpLCD_Write(0xD106, 0x0); |
glansberry | 0:8eab839d7892 | 639 | SharpLCD_Write(0xD107, 0x8D); |
glansberry | 0:8eab839d7892 | 640 | SharpLCD_Write(0xD108, 0x0); |
glansberry | 0:8eab839d7892 | 641 | SharpLCD_Write(0xD109, 0xAD); |
glansberry | 0:8eab839d7892 | 642 | SharpLCD_Write(0xD10A, 0x0); |
glansberry | 0:8eab839d7892 | 643 | SharpLCD_Write(0xD10B, 0xDF); |
glansberry | 0:8eab839d7892 | 644 | SharpLCD_Write(0xD10C, 0x1); |
glansberry | 0:8eab839d7892 | 645 | SharpLCD_Write(0xD10D, 0x11); |
glansberry | 0:8eab839d7892 | 646 | SharpLCD_Write(0xD10E, 0x1); |
glansberry | 0:8eab839d7892 | 647 | SharpLCD_Write(0xD10F, 0x58); |
glansberry | 0:8eab839d7892 | 648 | SharpLCD_Write(0xD110, 0x1); |
glansberry | 0:8eab839d7892 | 649 | SharpLCD_Write(0xD111, 0x76); |
glansberry | 0:8eab839d7892 | 650 | SharpLCD_Write(0xD112, 0x1); |
glansberry | 0:8eab839d7892 | 651 | SharpLCD_Write(0xD113, 0xA6); |
glansberry | 0:8eab839d7892 | 652 | SharpLCD_Write(0xD114, 0x1); |
glansberry | 0:8eab839d7892 | 653 | SharpLCD_Write(0xD115, 0xCD); |
glansberry | 0:8eab839d7892 | 654 | SharpLCD_Write(0xD116, 0x2); |
glansberry | 0:8eab839d7892 | 655 | SharpLCD_Write(0xD117, 0xE); |
glansberry | 0:8eab839d7892 | 656 | SharpLCD_Write(0xD118, 0x2); |
glansberry | 0:8eab839d7892 | 657 | SharpLCD_Write(0xD119, 0x46); |
glansberry | 0:8eab839d7892 | 658 | SharpLCD_Write(0xD11A, 0x2); |
glansberry | 0:8eab839d7892 | 659 | SharpLCD_Write(0xD11B, 0x48); |
glansberry | 0:8eab839d7892 | 660 | SharpLCD_Write(0xD11C, 0x2); |
glansberry | 0:8eab839d7892 | 661 | SharpLCD_Write(0xD11D, 0x78); |
glansberry | 0:8eab839d7892 | 662 | SharpLCD_Write(0xD11E, 0x2); |
glansberry | 0:8eab839d7892 | 663 | SharpLCD_Write(0xD11F, 0xAC); |
glansberry | 0:8eab839d7892 | 664 | SharpLCD_Write(0xD120, 0x2); |
glansberry | 0:8eab839d7892 | 665 | SharpLCD_Write(0xD121, 0xCD); |
glansberry | 0:8eab839d7892 | 666 | SharpLCD_Write(0xD122, 0x2); |
glansberry | 0:8eab839d7892 | 667 | SharpLCD_Write(0xD123, 0xFD); |
glansberry | 0:8eab839d7892 | 668 | SharpLCD_Write(0xD124, 0x3); |
glansberry | 0:8eab839d7892 | 669 | SharpLCD_Write(0xD125, 0x1F); |
glansberry | 0:8eab839d7892 | 670 | SharpLCD_Write(0xD126, 0x3); |
glansberry | 0:8eab839d7892 | 671 | SharpLCD_Write(0xD127, 0x4B); |
glansberry | 0:8eab839d7892 | 672 | SharpLCD_Write(0xD128, 0x3); |
glansberry | 0:8eab839d7892 | 673 | SharpLCD_Write(0xD129, 0x69); |
glansberry | 0:8eab839d7892 | 674 | SharpLCD_Write(0xD12A, 0x3); |
glansberry | 0:8eab839d7892 | 675 | SharpLCD_Write(0xD12B, 0x8E); |
glansberry | 0:8eab839d7892 | 676 | SharpLCD_Write(0xD12C, 0x3); |
glansberry | 0:8eab839d7892 | 677 | SharpLCD_Write(0xD12D, 0xA5); |
glansberry | 0:8eab839d7892 | 678 | SharpLCD_Write(0xD12E, 0x3); |
glansberry | 0:8eab839d7892 | 679 | SharpLCD_Write(0xD12F, 0xCD); |
glansberry | 0:8eab839d7892 | 680 | SharpLCD_Write(0xD130, 0x3); |
glansberry | 0:8eab839d7892 | 681 | SharpLCD_Write(0xD131, 0xF1); |
glansberry | 0:8eab839d7892 | 682 | SharpLCD_Write(0xD132, 0x3); |
glansberry | 0:8eab839d7892 | 683 | SharpLCD_Write(0xD133, 0xF1); |
glansberry | 0:8eab839d7892 | 684 | SharpLCD_Write(0xD200, 0x0); |
glansberry | 0:8eab839d7892 | 685 | SharpLCD_Write(0xD201, 0x37); |
glansberry | 0:8eab839d7892 | 686 | SharpLCD_Write(0xD202, 0x0); |
glansberry | 0:8eab839d7892 | 687 | SharpLCD_Write(0xD203, 0x4A); |
glansberry | 0:8eab839d7892 | 688 | SharpLCD_Write(0xD204, 0x0); |
glansberry | 0:8eab839d7892 | 689 | SharpLCD_Write(0xD205, 0x6F); |
glansberry | 0:8eab839d7892 | 690 | SharpLCD_Write(0xD206, 0x0); |
glansberry | 0:8eab839d7892 | 691 | SharpLCD_Write(0xD207, 0x8D); |
glansberry | 0:8eab839d7892 | 692 | SharpLCD_Write(0xD208, 0x0); |
glansberry | 0:8eab839d7892 | 693 | SharpLCD_Write(0xD209, 0xAD); |
glansberry | 0:8eab839d7892 | 694 | SharpLCD_Write(0xD20A, 0x0); |
glansberry | 0:8eab839d7892 | 695 | SharpLCD_Write(0xD20B, 0xDF); |
glansberry | 0:8eab839d7892 | 696 | SharpLCD_Write(0xD20C, 0x1); |
glansberry | 0:8eab839d7892 | 697 | SharpLCD_Write(0xD20D, 0x11); |
glansberry | 0:8eab839d7892 | 698 | SharpLCD_Write(0xD20E, 0x1); |
glansberry | 0:8eab839d7892 | 699 | SharpLCD_Write(0xD20F, 0x58); |
glansberry | 0:8eab839d7892 | 700 | SharpLCD_Write(0xD210, 0x1); |
glansberry | 0:8eab839d7892 | 701 | SharpLCD_Write(0xD211, 0x76); |
glansberry | 0:8eab839d7892 | 702 | SharpLCD_Write(0xD212, 0x1); |
glansberry | 0:8eab839d7892 | 703 | SharpLCD_Write(0xD213, 0xA6); |
glansberry | 0:8eab839d7892 | 704 | SharpLCD_Write(0xD214, 0x1); |
glansberry | 0:8eab839d7892 | 705 | SharpLCD_Write(0xD215, 0xCD); |
glansberry | 0:8eab839d7892 | 706 | SharpLCD_Write(0xD216, 0x2); |
glansberry | 0:8eab839d7892 | 707 | SharpLCD_Write(0xD217, 0xE); |
glansberry | 0:8eab839d7892 | 708 | SharpLCD_Write(0xD218, 0x2); |
glansberry | 0:8eab839d7892 | 709 | SharpLCD_Write(0xD219, 0x46); |
glansberry | 0:8eab839d7892 | 710 | SharpLCD_Write(0xD21A, 0x2); |
glansberry | 0:8eab839d7892 | 711 | SharpLCD_Write(0xD21B, 0x48); |
glansberry | 0:8eab839d7892 | 712 | SharpLCD_Write(0xD21C, 0x2); |
glansberry | 0:8eab839d7892 | 713 | SharpLCD_Write(0xD21D, 0x78); |
glansberry | 0:8eab839d7892 | 714 | SharpLCD_Write(0xD21E, 0x2); |
glansberry | 0:8eab839d7892 | 715 | SharpLCD_Write(0xD21F, 0xAC); |
glansberry | 0:8eab839d7892 | 716 | SharpLCD_Write(0xD220, 0x2); |
glansberry | 0:8eab839d7892 | 717 | SharpLCD_Write(0xD221, 0xCD); |
glansberry | 0:8eab839d7892 | 718 | SharpLCD_Write(0xD222, 0x2); |
glansberry | 0:8eab839d7892 | 719 | SharpLCD_Write(0xD223, 0xFD); |
glansberry | 0:8eab839d7892 | 720 | SharpLCD_Write(0xD224, 0x3); |
glansberry | 0:8eab839d7892 | 721 | SharpLCD_Write(0xD225, 0x1F); |
glansberry | 0:8eab839d7892 | 722 | SharpLCD_Write(0xD226, 0x3); |
glansberry | 0:8eab839d7892 | 723 | SharpLCD_Write(0xD227, 0x4B); |
glansberry | 0:8eab839d7892 | 724 | SharpLCD_Write(0xD228, 0x3); |
glansberry | 0:8eab839d7892 | 725 | SharpLCD_Write(0xD229, 0x69); |
glansberry | 0:8eab839d7892 | 726 | SharpLCD_Write(0xD22A, 0x3); |
glansberry | 0:8eab839d7892 | 727 | SharpLCD_Write(0xD22B, 0x8E); |
glansberry | 0:8eab839d7892 | 728 | SharpLCD_Write(0xD22C, 0x3); |
glansberry | 0:8eab839d7892 | 729 | SharpLCD_Write(0xD22D, 0xA5); |
glansberry | 0:8eab839d7892 | 730 | SharpLCD_Write(0xD22E, 0x3); |
glansberry | 0:8eab839d7892 | 731 | SharpLCD_Write(0xD22F, 0xCD); |
glansberry | 0:8eab839d7892 | 732 | SharpLCD_Write(0xD230, 0x3); |
glansberry | 0:8eab839d7892 | 733 | SharpLCD_Write(0xD231, 0xF1); |
glansberry | 0:8eab839d7892 | 734 | SharpLCD_Write(0xD232, 0x3); |
glansberry | 0:8eab839d7892 | 735 | SharpLCD_Write(0xD233, 0xF1); |
glansberry | 0:8eab839d7892 | 736 | SharpLCD_Write(0xD300, 0x0); |
glansberry | 0:8eab839d7892 | 737 | SharpLCD_Write(0xD301, 0x37); |
glansberry | 0:8eab839d7892 | 738 | SharpLCD_Write(0xD302, 0x0); |
glansberry | 0:8eab839d7892 | 739 | SharpLCD_Write(0xD303, 0x4A); |
glansberry | 0:8eab839d7892 | 740 | SharpLCD_Write(0xD304, 0x0); |
glansberry | 0:8eab839d7892 | 741 | SharpLCD_Write(0xD305, 0x6F); |
glansberry | 0:8eab839d7892 | 742 | SharpLCD_Write(0xD306, 0x0); |
glansberry | 0:8eab839d7892 | 743 | SharpLCD_Write(0xD307, 0x8D); |
glansberry | 0:8eab839d7892 | 744 | SharpLCD_Write(0xD308, 0x0); |
glansberry | 0:8eab839d7892 | 745 | SharpLCD_Write(0xD309, 0xAD); |
glansberry | 0:8eab839d7892 | 746 | SharpLCD_Write(0xD30A, 0x0); |
glansberry | 0:8eab839d7892 | 747 | SharpLCD_Write(0xD30B, 0xDF); |
glansberry | 0:8eab839d7892 | 748 | SharpLCD_Write(0xD30C, 0x1); |
glansberry | 0:8eab839d7892 | 749 | SharpLCD_Write(0xD30D, 0x11); |
glansberry | 0:8eab839d7892 | 750 | SharpLCD_Write(0xD30E, 0x1); |
glansberry | 0:8eab839d7892 | 751 | SharpLCD_Write(0xD30F, 0x58); |
glansberry | 0:8eab839d7892 | 752 | SharpLCD_Write(0xD310, 0x1); |
glansberry | 0:8eab839d7892 | 753 | SharpLCD_Write(0xD311, 0x76); |
glansberry | 0:8eab839d7892 | 754 | SharpLCD_Write(0xD312, 0x1); |
glansberry | 0:8eab839d7892 | 755 | SharpLCD_Write(0xD313, 0xA6); |
glansberry | 0:8eab839d7892 | 756 | SharpLCD_Write(0xD314, 0x1); |
glansberry | 0:8eab839d7892 | 757 | SharpLCD_Write(0xD315, 0xCD); |
glansberry | 0:8eab839d7892 | 758 | SharpLCD_Write(0xD316, 0x2); |
glansberry | 0:8eab839d7892 | 759 | SharpLCD_Write(0xD317, 0xE); |
glansberry | 0:8eab839d7892 | 760 | SharpLCD_Write(0xD318, 0x2); |
glansberry | 0:8eab839d7892 | 761 | SharpLCD_Write(0xD319, 0x46); |
glansberry | 0:8eab839d7892 | 762 | SharpLCD_Write(0xD31A, 0x2); |
glansberry | 0:8eab839d7892 | 763 | SharpLCD_Write(0xD31B, 0x48); |
glansberry | 0:8eab839d7892 | 764 | SharpLCD_Write(0xD31C, 0x2); |
glansberry | 0:8eab839d7892 | 765 | SharpLCD_Write(0xD31D, 0x78); |
glansberry | 0:8eab839d7892 | 766 | SharpLCD_Write(0xD31E, 0x2); |
glansberry | 0:8eab839d7892 | 767 | SharpLCD_Write(0xD31F, 0xAC); |
glansberry | 0:8eab839d7892 | 768 | SharpLCD_Write(0xD320, 0x2); |
glansberry | 0:8eab839d7892 | 769 | SharpLCD_Write(0xD321, 0xCD); |
glansberry | 0:8eab839d7892 | 770 | SharpLCD_Write(0xD322, 0x2); |
glansberry | 0:8eab839d7892 | 771 | SharpLCD_Write(0xD323, 0xFD); |
glansberry | 0:8eab839d7892 | 772 | SharpLCD_Write(0xD324, 0x3); |
glansberry | 0:8eab839d7892 | 773 | SharpLCD_Write(0xD325, 0x1F); |
glansberry | 0:8eab839d7892 | 774 | SharpLCD_Write(0xD326, 0x3); |
glansberry | 0:8eab839d7892 | 775 | SharpLCD_Write(0xD327, 0x4B); |
glansberry | 0:8eab839d7892 | 776 | SharpLCD_Write(0xD328, 0x3); |
glansberry | 0:8eab839d7892 | 777 | SharpLCD_Write(0xD329, 0x69); |
glansberry | 0:8eab839d7892 | 778 | SharpLCD_Write(0xD32A, 0x3); |
glansberry | 0:8eab839d7892 | 779 | SharpLCD_Write(0xD32B, 0x8E); |
glansberry | 0:8eab839d7892 | 780 | SharpLCD_Write(0xD32C, 0x3); |
glansberry | 0:8eab839d7892 | 781 | SharpLCD_Write(0xD32D, 0xA5); |
glansberry | 0:8eab839d7892 | 782 | SharpLCD_Write(0xD32E, 0x3); |
glansberry | 0:8eab839d7892 | 783 | SharpLCD_Write(0xD32F, 0xCD); |
glansberry | 0:8eab839d7892 | 784 | SharpLCD_Write(0xD330, 0x3); |
glansberry | 0:8eab839d7892 | 785 | SharpLCD_Write(0xD331, 0xF1); |
glansberry | 0:8eab839d7892 | 786 | SharpLCD_Write(0xD332, 0x3); |
glansberry | 0:8eab839d7892 | 787 | SharpLCD_Write(0xD333, 0xF1); |
glansberry | 0:8eab839d7892 | 788 | SharpLCD_Write(0xD400, 0x0); |
glansberry | 0:8eab839d7892 | 789 | SharpLCD_Write(0xD401, 0x37); |
glansberry | 0:8eab839d7892 | 790 | SharpLCD_Write(0xD402, 0x0); |
glansberry | 0:8eab839d7892 | 791 | SharpLCD_Write(0xD403, 0x4A); |
glansberry | 0:8eab839d7892 | 792 | SharpLCD_Write(0xD404, 0x0); |
glansberry | 0:8eab839d7892 | 793 | SharpLCD_Write(0xD405, 0x6F); |
glansberry | 0:8eab839d7892 | 794 | SharpLCD_Write(0xD406, 0x0); |
glansberry | 0:8eab839d7892 | 795 | SharpLCD_Write(0xD407, 0x8D); |
glansberry | 0:8eab839d7892 | 796 | SharpLCD_Write(0xD408, 0x0); |
glansberry | 0:8eab839d7892 | 797 | SharpLCD_Write(0xD409, 0xAD); |
glansberry | 0:8eab839d7892 | 798 | SharpLCD_Write(0xD40A, 0x0); |
glansberry | 0:8eab839d7892 | 799 | SharpLCD_Write(0xD40B, 0xDF); |
glansberry | 0:8eab839d7892 | 800 | SharpLCD_Write(0xD40C, 0x1); |
glansberry | 0:8eab839d7892 | 801 | SharpLCD_Write(0xD40D, 0x11); |
glansberry | 0:8eab839d7892 | 802 | SharpLCD_Write(0xD40E, 0x1); |
glansberry | 0:8eab839d7892 | 803 | SharpLCD_Write(0xD40F, 0x58); |
glansberry | 0:8eab839d7892 | 804 | SharpLCD_Write(0xD410, 0x1); |
glansberry | 0:8eab839d7892 | 805 | SharpLCD_Write(0xD411, 0x76); |
glansberry | 0:8eab839d7892 | 806 | SharpLCD_Write(0xD412, 0x1); |
glansberry | 0:8eab839d7892 | 807 | SharpLCD_Write(0xD413, 0xA6); |
glansberry | 0:8eab839d7892 | 808 | SharpLCD_Write(0xD414, 0x1); |
glansberry | 0:8eab839d7892 | 809 | SharpLCD_Write(0xD415, 0xCD); |
glansberry | 0:8eab839d7892 | 810 | SharpLCD_Write(0xD416, 0x2); |
glansberry | 0:8eab839d7892 | 811 | SharpLCD_Write(0xD417, 0xE); |
glansberry | 0:8eab839d7892 | 812 | SharpLCD_Write(0xD418, 0x2); |
glansberry | 0:8eab839d7892 | 813 | SharpLCD_Write(0xD419, 0x46); |
glansberry | 0:8eab839d7892 | 814 | SharpLCD_Write(0xD41A, 0x2); |
glansberry | 0:8eab839d7892 | 815 | SharpLCD_Write(0xD41B, 0x48); |
glansberry | 0:8eab839d7892 | 816 | SharpLCD_Write(0xD41C, 0x2); |
glansberry | 0:8eab839d7892 | 817 | SharpLCD_Write(0xD41D, 0x78); |
glansberry | 0:8eab839d7892 | 818 | SharpLCD_Write(0xD41E, 0x2); |
glansberry | 0:8eab839d7892 | 819 | SharpLCD_Write(0xD41F, 0xAC); |
glansberry | 0:8eab839d7892 | 820 | SharpLCD_Write(0xD420, 0x2); |
glansberry | 0:8eab839d7892 | 821 | SharpLCD_Write(0xD421, 0xCD); |
glansberry | 0:8eab839d7892 | 822 | SharpLCD_Write(0xD422, 0x2); |
glansberry | 0:8eab839d7892 | 823 | SharpLCD_Write(0xD423, 0xFD); |
glansberry | 0:8eab839d7892 | 824 | SharpLCD_Write(0xD424, 0x3); |
glansberry | 0:8eab839d7892 | 825 | SharpLCD_Write(0xD425, 0x1F); |
glansberry | 0:8eab839d7892 | 826 | SharpLCD_Write(0xD426, 0x3); |
glansberry | 0:8eab839d7892 | 827 | SharpLCD_Write(0xD427, 0x4B); |
glansberry | 0:8eab839d7892 | 828 | SharpLCD_Write(0xD428, 0x3); |
glansberry | 0:8eab839d7892 | 829 | SharpLCD_Write(0xD429, 0x69); |
glansberry | 0:8eab839d7892 | 830 | SharpLCD_Write(0xD42A, 0x3); |
glansberry | 0:8eab839d7892 | 831 | SharpLCD_Write(0xD42B, 0x8E); |
glansberry | 0:8eab839d7892 | 832 | SharpLCD_Write(0xD42C, 0x3); |
glansberry | 0:8eab839d7892 | 833 | SharpLCD_Write(0xD42D, 0xA5); |
glansberry | 0:8eab839d7892 | 834 | SharpLCD_Write(0xD42E, 0x3); |
glansberry | 0:8eab839d7892 | 835 | SharpLCD_Write(0xD42F, 0xCD); |
glansberry | 0:8eab839d7892 | 836 | SharpLCD_Write(0xD430, 0x3); |
glansberry | 0:8eab839d7892 | 837 | SharpLCD_Write(0xD431, 0xF1); |
glansberry | 0:8eab839d7892 | 838 | SharpLCD_Write(0xD432, 0x3); |
glansberry | 0:8eab839d7892 | 839 | SharpLCD_Write(0xD433, 0xF1); |
glansberry | 0:8eab839d7892 | 840 | SharpLCD_Write(0xD500, 0x0); |
glansberry | 0:8eab839d7892 | 841 | SharpLCD_Write(0xD501, 0x37); |
glansberry | 0:8eab839d7892 | 842 | SharpLCD_Write(0xD502, 0x0); |
glansberry | 0:8eab839d7892 | 843 | SharpLCD_Write(0xD503, 0x4A); |
glansberry | 0:8eab839d7892 | 844 | SharpLCD_Write(0xD504, 0x0); |
glansberry | 0:8eab839d7892 | 845 | SharpLCD_Write(0xD505, 0x6F); |
glansberry | 0:8eab839d7892 | 846 | SharpLCD_Write(0xD506, 0x0); |
glansberry | 0:8eab839d7892 | 847 | SharpLCD_Write(0xD507, 0x8D); |
glansberry | 0:8eab839d7892 | 848 | SharpLCD_Write(0xD508, 0x0); |
glansberry | 0:8eab839d7892 | 849 | SharpLCD_Write(0xD509, 0xAD); |
glansberry | 0:8eab839d7892 | 850 | SharpLCD_Write(0xD50A, 0x0); |
glansberry | 0:8eab839d7892 | 851 | SharpLCD_Write(0xD50B, 0xDF); |
glansberry | 0:8eab839d7892 | 852 | SharpLCD_Write(0xD50C, 0x1); |
glansberry | 0:8eab839d7892 | 853 | SharpLCD_Write(0xD50D, 0x11); |
glansberry | 0:8eab839d7892 | 854 | SharpLCD_Write(0xD50E, 0x1); |
glansberry | 0:8eab839d7892 | 855 | SharpLCD_Write(0xD50F, 0x58); |
glansberry | 0:8eab839d7892 | 856 | SharpLCD_Write(0xD510, 0x1); |
glansberry | 0:8eab839d7892 | 857 | SharpLCD_Write(0xD511, 0x76); |
glansberry | 0:8eab839d7892 | 858 | SharpLCD_Write(0xD512, 0x1); |
glansberry | 0:8eab839d7892 | 859 | SharpLCD_Write(0xD513, 0xA6); |
glansberry | 0:8eab839d7892 | 860 | SharpLCD_Write(0xD514, 0x1); |
glansberry | 0:8eab839d7892 | 861 | SharpLCD_Write(0xD515, 0xCD); |
glansberry | 0:8eab839d7892 | 862 | SharpLCD_Write(0xD516, 0x2); |
glansberry | 0:8eab839d7892 | 863 | SharpLCD_Write(0xD517, 0xE); |
glansberry | 0:8eab839d7892 | 864 | SharpLCD_Write(0xD518, 0x2); |
glansberry | 0:8eab839d7892 | 865 | SharpLCD_Write(0xD519, 0x46); |
glansberry | 0:8eab839d7892 | 866 | SharpLCD_Write(0xD51A, 0x2); |
glansberry | 0:8eab839d7892 | 867 | SharpLCD_Write(0xD51B, 0x48); |
glansberry | 0:8eab839d7892 | 868 | SharpLCD_Write(0xD51C, 0x2); |
glansberry | 0:8eab839d7892 | 869 | SharpLCD_Write(0xD51D, 0x78); |
glansberry | 0:8eab839d7892 | 870 | SharpLCD_Write(0xD51E, 0x2); |
glansberry | 0:8eab839d7892 | 871 | SharpLCD_Write(0xD51F, 0xAC); |
glansberry | 0:8eab839d7892 | 872 | SharpLCD_Write(0xD520, 0x2); |
glansberry | 0:8eab839d7892 | 873 | SharpLCD_Write(0xD521, 0xCD); |
glansberry | 0:8eab839d7892 | 874 | SharpLCD_Write(0xD522, 0x2); |
glansberry | 0:8eab839d7892 | 875 | SharpLCD_Write(0xD523, 0xFD); |
glansberry | 0:8eab839d7892 | 876 | SharpLCD_Write(0xD524, 0x3); |
glansberry | 0:8eab839d7892 | 877 | SharpLCD_Write(0xD525, 0x1F); |
glansberry | 0:8eab839d7892 | 878 | SharpLCD_Write(0xD526, 0x3); |
glansberry | 0:8eab839d7892 | 879 | SharpLCD_Write(0xD527, 0x4B); |
glansberry | 0:8eab839d7892 | 880 | SharpLCD_Write(0xD528, 0x3); |
glansberry | 0:8eab839d7892 | 881 | SharpLCD_Write(0xD529, 0x69); |
glansberry | 0:8eab839d7892 | 882 | SharpLCD_Write(0xD52A, 0x3); |
glansberry | 0:8eab839d7892 | 883 | SharpLCD_Write(0xD52B, 0x8E); |
glansberry | 0:8eab839d7892 | 884 | SharpLCD_Write(0xD52C, 0x3); |
glansberry | 0:8eab839d7892 | 885 | SharpLCD_Write(0xD52D, 0xA5); |
glansberry | 0:8eab839d7892 | 886 | SharpLCD_Write(0xD52E, 0x3); |
glansberry | 0:8eab839d7892 | 887 | SharpLCD_Write(0xD52F, 0xCD); |
glansberry | 0:8eab839d7892 | 888 | SharpLCD_Write(0xD530, 0x3); |
glansberry | 0:8eab839d7892 | 889 | SharpLCD_Write(0xD531, 0xF1); |
glansberry | 0:8eab839d7892 | 890 | SharpLCD_Write(0xF532, 0x3); |
glansberry | 0:8eab839d7892 | 891 | SharpLCD_Write(0xD533, 0xF1); |
glansberry | 0:8eab839d7892 | 892 | SharpLCD_Write(0xD600, 0x0); |
glansberry | 0:8eab839d7892 | 893 | SharpLCD_Write(0xD601, 0x37); |
glansberry | 0:8eab839d7892 | 894 | SharpLCD_Write(0xD602, 0x0); |
glansberry | 0:8eab839d7892 | 895 | SharpLCD_Write(0xD603, 0x4A); |
glansberry | 0:8eab839d7892 | 896 | SharpLCD_Write(0xD604, 0x0); |
glansberry | 0:8eab839d7892 | 897 | SharpLCD_Write(0xD605, 0x6F); |
glansberry | 0:8eab839d7892 | 898 | SharpLCD_Write(0xD606, 0x0); |
glansberry | 0:8eab839d7892 | 899 | SharpLCD_Write(0xD607, 0x8D); |
glansberry | 0:8eab839d7892 | 900 | SharpLCD_Write(0xD608, 0x0); |
glansberry | 0:8eab839d7892 | 901 | SharpLCD_Write(0xD609, 0xAD); |
glansberry | 0:8eab839d7892 | 902 | SharpLCD_Write(0xD60A, 0x0); |
glansberry | 0:8eab839d7892 | 903 | SharpLCD_Write(0xD60B, 0xDF); |
glansberry | 0:8eab839d7892 | 904 | SharpLCD_Write(0xD60C, 0x1); |
glansberry | 0:8eab839d7892 | 905 | SharpLCD_Write(0xD60D, 0x11); |
glansberry | 0:8eab839d7892 | 906 | SharpLCD_Write(0xD60E, 0x1); |
glansberry | 0:8eab839d7892 | 907 | SharpLCD_Write(0xD60F, 0x58); |
glansberry | 0:8eab839d7892 | 908 | SharpLCD_Write(0xD610, 0x1); |
glansberry | 0:8eab839d7892 | 909 | SharpLCD_Write(0xD611, 0x76); |
glansberry | 0:8eab839d7892 | 910 | SharpLCD_Write(0xD612, 0x1); |
glansberry | 0:8eab839d7892 | 911 | SharpLCD_Write(0xD613, 0xA6); |
glansberry | 0:8eab839d7892 | 912 | SharpLCD_Write(0xD614, 0x1); |
glansberry | 0:8eab839d7892 | 913 | SharpLCD_Write(0xD615, 0xCD); |
glansberry | 0:8eab839d7892 | 914 | SharpLCD_Write(0xD616, 0x2); |
glansberry | 0:8eab839d7892 | 915 | SharpLCD_Write(0xD617, 0xE); |
glansberry | 0:8eab839d7892 | 916 | SharpLCD_Write(0xD618, 0x2); |
glansberry | 0:8eab839d7892 | 917 | SharpLCD_Write(0xD619, 0x46); |
glansberry | 0:8eab839d7892 | 918 | SharpLCD_Write(0xD61A, 0x2); |
glansberry | 0:8eab839d7892 | 919 | SharpLCD_Write(0xD61B, 0x48); |
glansberry | 0:8eab839d7892 | 920 | SharpLCD_Write(0xD61C, 0x2); |
glansberry | 0:8eab839d7892 | 921 | SharpLCD_Write(0xD61D, 0x78); |
glansberry | 0:8eab839d7892 | 922 | SharpLCD_Write(0xD61E, 0x2); |
glansberry | 0:8eab839d7892 | 923 | SharpLCD_Write(0xD61F, 0xAC); |
glansberry | 0:8eab839d7892 | 924 | SharpLCD_Write(0xD620, 0x2); |
glansberry | 0:8eab839d7892 | 925 | SharpLCD_Write(0xD621, 0xCD); |
glansberry | 0:8eab839d7892 | 926 | SharpLCD_Write(0xD622, 0x2); |
glansberry | 0:8eab839d7892 | 927 | SharpLCD_Write(0xD623, 0xFD); |
glansberry | 0:8eab839d7892 | 928 | SharpLCD_Write(0xD624, 0x3); |
glansberry | 0:8eab839d7892 | 929 | SharpLCD_Write(0xD625, 0x1F); |
glansberry | 0:8eab839d7892 | 930 | SharpLCD_Write(0xD626, 0x3); |
glansberry | 0:8eab839d7892 | 931 | SharpLCD_Write(0xD627, 0x4B); |
glansberry | 0:8eab839d7892 | 932 | SharpLCD_Write(0xD628, 0x3); |
glansberry | 0:8eab839d7892 | 933 | SharpLCD_Write(0xD629, 0x69); |
glansberry | 0:8eab839d7892 | 934 | SharpLCD_Write(0xD62A, 0x3); |
glansberry | 0:8eab839d7892 | 935 | SharpLCD_Write(0xD62B, 0x8E); |
glansberry | 0:8eab839d7892 | 936 | SharpLCD_Write(0xD62C, 0x3); |
glansberry | 0:8eab839d7892 | 937 | SharpLCD_Write(0xD62D, 0xA5); |
glansberry | 0:8eab839d7892 | 938 | SharpLCD_Write(0xD62E, 0x3); |
glansberry | 0:8eab839d7892 | 939 | SharpLCD_Write(0xD62F, 0xCD); |
glansberry | 0:8eab839d7892 | 940 | SharpLCD_Write(0xD630, 0x3); |
glansberry | 0:8eab839d7892 | 941 | SharpLCD_Write(0xD631, 0xF1); |
glansberry | 0:8eab839d7892 | 942 | SharpLCD_Write(0xD632, 0x3); |
glansberry | 0:8eab839d7892 | 943 | SharpLCD_Write(0xD633, 0xF1); |
glansberry | 0:8eab839d7892 | 944 | SharpLCD_Write(0xF000, 0x55); |
glansberry | 0:8eab839d7892 | 945 | SharpLCD_Write(0xF001, 0xAA); |
glansberry | 0:8eab839d7892 | 946 | SharpLCD_Write(0xF002, 0x52); |
glansberry | 0:8eab839d7892 | 947 | SharpLCD_Write(0xF003, 0x8); |
glansberry | 0:8eab839d7892 | 948 | SharpLCD_Write(0xF004, 0x0); |
glansberry | 0:8eab839d7892 | 949 | SharpLCD_Write(0xB400, 0x10); |
glansberry | 0:8eab839d7892 | 950 | SharpLCD_Write(0x3A00, 0x77); |
glansberry | 0:8eab839d7892 | 951 | SharpLCD_Write(0xB101, 0x0); |
glansberry | 0:8eab839d7892 | 952 | SharpLCD_Write(0x1100, 0x0); |
glansberry | 0:8eab839d7892 | 953 | wait_ms(64); // Delay 0x64ms); |
glansberry | 0:8eab839d7892 | 954 | SharpLCD_Write(0x2900, 0x0); |
glansberry | 0:8eab839d7892 | 955 | wait_ms(64); // Delay 0x64ms); |
glansberry | 0:8eab839d7892 | 956 | } |
glansberry | 0:8eab839d7892 | 957 |