acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
S6D02A1_Init.h (2607B)
1 2 // This is the command sequence that initialises the S6D02A1 driver 3 // 4 // This setup information is in a format accecpted by the commandList() function 5 // which reduces FLASH space, but on an ESP8266 there is plenty available! 6 // 7 // See ILI9341_Setup.h file for an alternative simpler format 8 9 { 10 // Initialization commands for S6D02A1 screens 11 static const uint8_t S6D02A1_cmds[] PROGMEM = 12 { 13 29, 14 0xf0, 2, 0x5a, 0x5a, // Excommand2 15 0xfc, 2, 0x5a, 0x5a, // Excommand3 16 0x26, 1, 0x01, // Gamma set 17 0xfa, 15, 0x02, 0x1f, 0x00, 0x10, 0x22, 0x30, 0x38, 0x3A, 0x3A, 0x3A, 0x3A, 0x3A, 0x3d, 0x02, 0x01, // Positive gamma control 18 0xfb, 15, 0x21, 0x00, 0x02, 0x04, 0x07, 0x0a, 0x0b, 0x0c, 0x0c, 0x16, 0x1e, 0x30, 0x3f, 0x01, 0x02, // Negative gamma control 19 0xfd, 11, 0x00, 0x00, 0x00, 0x17, 0x10, 0x00, 0x01, 0x01, 0x00, 0x1f, 0x1f, // Analog parameter control 20 0xf4, 15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x07, 0x00, 0x3C, 0x36, 0x00, 0x3C, 0x36, 0x00, // Power control 21 0xf5, 13, 0x00, 0x70, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x66, 0x06, // VCOM control 22 0xf6, 11, 0x02, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x01, 0x00, // Source control 23 0xf2, 17, 0x00, 0x01, 0x03, 0x08, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x08, 0x08, //Display control 24 0xf8, 1, 0x11, // Gate control 25 0xf7, 4, 0xc8, 0x20, 0x00, 0x00, // Interface control 26 0xf3, 2, 0x00, 0x00, // Power sequence control 27 0x11, TFT_INIT_DELAY, 50, // Wake 28 0xf3, 2+TFT_INIT_DELAY, 0x00, 0x01, 50, // Power sequence control 29 0xf3, 2+TFT_INIT_DELAY, 0x00, 0x03, 50, // Power sequence control 30 0xf3, 2+TFT_INIT_DELAY, 0x00, 0x07, 50, // Power sequence control 31 0xf3, 2+TFT_INIT_DELAY, 0x00, 0x0f, 50, // Power sequence control 32 0xf4, 15+TFT_INIT_DELAY, 0x00, 0x04, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x07, 0x00, 0x3C, 0x36, 0x00, 0x3C, 0x36, 0x00, 50, // Power control 33 0xf3, 2+TFT_INIT_DELAY, 0x00, 0x1f, 50, // Power sequence control 34 0xf3, 2+TFT_INIT_DELAY, 0x00, 0x7f, 50, // Power sequence control 35 0xf3, 2+TFT_INIT_DELAY, 0x00, 0xff, 50, // Power sequence control 36 0xfd, 11, 0x00, 0x00, 0x00, 0x17, 0x10, 0x00, 0x00, 0x01, 0x00, 0x16, 0x16, // Analog parameter control 37 0xf4, 15, 0x00, 0x09, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x07, 0x00, 0x3C, 0x36, 0x00, 0x3C, 0x36, 0x00, // Power control 38 0x36, 1, 0xC8, // Memory access data control 39 0x35, 1, 0x00, // Tearing effect line on 40 0x3a, 1+TFT_INIT_DELAY, 0x05, 150, // Interface pixel control 41 0x29, 0, // Display on 42 0x2c, 0 // Memory write 43 }; 44 45 commandList(S6D02A1_cmds); 46 47 }