acidportal- 😈 Worlds smallest Evil Portal on a LilyGo T-QT |
git clone git://git.acid.vegas/acidportal.git |
Log | Files | Refs | Archive | README | LICENSE |
GC9A01_Init.h (5325B)
1 2 // This is the command sequence that initialises the GC9A01 driver 3 4 { 5 writecommand(0xFE); 6 writecommand(0xEF); 7 8 writecommand(0xB0); 9 writedata(0xC0); 10 11 writecommand(0xB1); 12 writedata(0x80); 13 14 writecommand(0xB2); 15 writedata(0x27); 16 17 writecommand(0xB3); 18 writedata(0x13); 19 20 writecommand(0xB6); 21 writedata(0x19); 22 23 writecommand(0xB7); 24 writedata(0x05); 25 26 writecommand(0xAC); 27 writedata(0xC8); 28 29 writecommand(0xAB); 30 writedata(0x0f); 31 32 writecommand(0x3A); 33 writedata(0x05); 34 35 writecommand(0xB4); 36 writedata(0x04); 37 38 writecommand(0xA8); 39 writedata(0x08); 40 41 writecommand(0xB8); 42 writedata(0x08); 43 44 writecommand(0xEA); 45 writedata(0x02); 46 47 writecommand(0xE8); 48 writedata(0x2A); 49 50 writecommand(0xE9); 51 writedata(0x47); 52 53 writecommand(0xE7); 54 writedata(0x5F); 55 56 writecommand(0xC6); 57 writedata(0x21); 58 59 writecommand(0xC7); 60 writedata(0x15); 61 62 writecommand(0xF0); 63 writedata(0x1D); 64 writedata(0x38); 65 writedata(0x09); 66 writedata(0x4D); 67 writedata(0x92); 68 writedata(0x2F); 69 writedata(0x35); 70 writedata(0x52); 71 writedata(0x1E); 72 writedata(0x0C); 73 writedata(0x04); 74 writedata(0x12); 75 writedata(0x14); 76 writedata(0x1F); 77 78 writecommand(0xF1); 79 writedata(0x16); 80 writedata(0x40); 81 writedata(0x1C); 82 writedata(0x54); 83 writedata(0xA9); 84 writedata(0x2D); 85 writedata(0x2E); 86 writedata(0x56); 87 writedata(0x10); 88 writedata(0x0D); 89 writedata(0x0C); 90 writedata(0x1A); 91 writedata(0x14); 92 writedata(0x1E); 93 94 writecommand(0xF4); 95 writedata(0x00); 96 writedata(0x00); 97 writedata(0xFF); 98 99 writecommand(0xBA); 100 writedata(0xFF); 101 writedata(0xFF); 102 103 writecommand(0x20); 104 105 writecommand(0x11); 106 delay(120); 107 writecommand(0x29); 108 109 110 #if 0 111 writecommand(0xEF); 112 writecommand(0xEB); 113 writedata(0x14); 114 115 writecommand(0xFE); 116 writecommand(0xEF); 117 118 writecommand(0xEB); 119 writedata(0x14); 120 121 writecommand(0x84); 122 writedata(0x40); 123 124 writecommand(0x85); 125 writedata(0xFF); 126 127 writecommand(0x86); 128 writedata(0xFF); 129 130 writecommand(0x87); 131 writedata(0xFF); 132 133 writecommand(0x88); 134 writedata(0x0A); 135 136 writecommand(0x89); 137 writedata(0x21); 138 139 writecommand(0x8A); 140 writedata(0x00); 141 142 writecommand(0x8B); 143 writedata(0x80); 144 145 writecommand(0x8C); 146 writedata(0x01); 147 148 writecommand(0x8D); 149 writedata(0x01); 150 151 writecommand(0x8E); 152 writedata(0xFF); 153 154 writecommand(0x8F); 155 writedata(0xFF); 156 157 writecommand(0xB6); 158 writedata(0x00); 159 writedata(0x20); 160 161 writecommand(0x3A); 162 writedata(0x05); 163 164 writecommand(0x90); 165 writedata(0x08); 166 writedata(0x08); 167 writedata(0x08); 168 writedata(0x08); 169 170 writecommand(0xBD); 171 writedata(0x06); 172 173 writecommand(0xBC); 174 writedata(0x00); 175 176 writecommand(0xFF); 177 writedata(0x60); 178 writedata(0x01); 179 writedata(0x04); 180 181 writecommand(0xC3); 182 writedata(0x13); 183 writecommand(0xC4); 184 writedata(0x13); 185 186 writecommand(0xC9); 187 writedata(0x22); 188 189 writecommand(0xBE); 190 writedata(0x11); 191 192 writecommand(0xE1); 193 writedata(0x10); 194 writedata(0x0E); 195 196 writecommand(0xDF); 197 writedata(0x21); 198 writedata(0x0c); 199 writedata(0x02); 200 201 writecommand(0xF0); 202 writedata(0x45); 203 writedata(0x09); 204 writedata(0x08); 205 writedata(0x08); 206 writedata(0x26); 207 writedata(0x2A); 208 209 writecommand(0xF1); 210 writedata(0x43); 211 writedata(0x70); 212 writedata(0x72); 213 writedata(0x36); 214 writedata(0x37); 215 writedata(0x6F); 216 217 writecommand(0xF2); 218 writedata(0x45); 219 writedata(0x09); 220 writedata(0x08); 221 writedata(0x08); 222 writedata(0x26); 223 writedata(0x2A); 224 225 writecommand(0xF3); 226 writedata(0x43); 227 writedata(0x70); 228 writedata(0x72); 229 writedata(0x36); 230 writedata(0x37); 231 writedata(0x6F); 232 233 writecommand(0xED); 234 writedata(0x1B); 235 writedata(0x0B); 236 237 writecommand(0xAE); 238 writedata(0x77); 239 240 writecommand(0xCD); 241 writedata(0x63); 242 243 writecommand(0x70); 244 writedata(0x07); 245 writedata(0x07); 246 writedata(0x04); 247 writedata(0x0E); 248 writedata(0x0F); 249 writedata(0x09); 250 writedata(0x07); 251 writedata(0x08); 252 writedata(0x03); 253 254 writecommand(0xE8); 255 writedata(0x34); 256 257 writecommand(0x62); 258 writedata(0x18); 259 writedata(0x0D); 260 writedata(0x71); 261 writedata(0xED); 262 writedata(0x70); 263 writedata(0x70); 264 writedata(0x18); 265 writedata(0x0F); 266 writedata(0x71); 267 writedata(0xEF); 268 writedata(0x70); 269 writedata(0x70); 270 271 writecommand(0x63); 272 writedata(0x18); 273 writedata(0x11); 274 writedata(0x71); 275 writedata(0xF1); 276 writedata(0x70); 277 writedata(0x70); 278 writedata(0x18); 279 writedata(0x13); 280 writedata(0x71); 281 writedata(0xF3); 282 writedata(0x70); 283 writedata(0x70); 284 285 writecommand(0x64); 286 writedata(0x28); 287 writedata(0x29); 288 writedata(0xF1); 289 writedata(0x01); 290 writedata(0xF1); 291 writedata(0x00); 292 writedata(0x07); 293 294 writecommand(0x66); 295 writedata(0x3C); 296 writedata(0x00); 297 writedata(0xCD); 298 writedata(0x67); 299 writedata(0x45); 300 writedata(0x45); 301 writedata(0x10); 302 writedata(0x00); 303 writedata(0x00); 304 writedata(0x00); 305 306 writecommand(0x67); 307 writedata(0x00); 308 writedata(0x3C); 309 writedata(0x00); 310 writedata(0x00); 311 writedata(0x00); 312 writedata(0x01); 313 writedata(0x54); 314 writedata(0x10); 315 writedata(0x32); 316 writedata(0x98); 317 318 writecommand(0x74); 319 writedata(0x10); 320 writedata(0x85); 321 writedata(0x80); 322 writedata(0x00); 323 writedata(0x00); 324 writedata(0x4E); 325 writedata(0x00); 326 327 writecommand(0x98); 328 writedata(0x3e); 329 writedata(0x07); 330 331 writecommand(0x35); 332 writecommand(0x21); 333 334 writecommand(0x11); 335 delay(120); 336 writecommand(0x29); 337 delay(20); 338 #endif 339 }