// ILI9341 controller initialization comparison // Espruino module // ESP32 CYD .h // -------------------------------------- -------------------------------- //v^moved in init module // |cmd |data |cmd |data |deltas // | | | | | wCMD(0x28); ce.write(1); // // ? in ESP32 CYD ? wCD (0xCF, [0x00,0x83,0x30]); // PCB ,0x00,0xC1,0X30, // 2nd wCD (0xED, [0x64,0x03,0x12,0x81]); // POSC ,0x64,0x03,0X12,0X81, // wCD (0xE8, [0x85,0x01,0x79]); // DTCA_ic,0x85,0x10,0x7A, // 2nd 3rd wCD (0xCB, [0x39,0x2C,0x00,0x34,0x02]);// PCA ,0x39,0x2C,0x00,0x34,0x02,// wCD (0xF7, 0x20); // PRC ,0x20, // wCD (0xEA, [0x00,0x00]); // DTCB ,0x00,0x00, // wCD (0xC0, 0x26); // PWCTRL1,0x1B, // wCD (0xC1, 0x11); // PWCTRL2,0x01, // wCD (0xC5, [0x35,0x3E]); // VMCTRL1,0x30,0x30, // 1st 2nd wCD (0xC7, 0xBE); // VMCTRL2,0xB7, // wCD (0x36, 0x48); // MADCTL ,0x48, // ^ to here wCD (0x3A, 0x55); // PIXSET ,0x55, // wCD (0xB1, [0x00,0x1B]); // FRMCTR1,0x00,0x1A, // 2nd //v wCD (0xB6, [0x0A,0x82,0x27,0x00]); // DISCTRL,0x0A,0xA2, // -v from here wCD (0xF2, 0x08); // E3G ,0x00, // wCD (0x26, 0x01); // GAMSET ,0x01, // // PGAMCTRL, wCD (0xE0, [0x1F,0x1A,0x18,0x0A,0x0F,0x06,0x45,0x87,0x32,0x0A,0x07,0x02,0x07,0x05,0x00]); // 0x0F,0x2A,0x28,0x08,0x0E,0x08,0x54,0XA9,0x43,0x0A,0x0F,0x00,0x00,0x00,0x00, // -- -- -- -- -- -- -- -- -- -- -- -- -- -- // <-- deltas // NGAMCTRL, wCD (0xE1, [0x00,0x25,0x27,0x05,0x10,0x09,0x3A,0x78,0x4D,0x05,0x18,0x0D,0x38,0x3A,0x1F]); // 0x00,0x15,0x17,0x07,0x11,0x06,0x2B,0x56,0x3C,0x05,0x10,0x0F,0x3F,0x3F,0x0F, // -- -- -- -- -- -- -- -- -- -- -- -- -- // <-- deltas // 0x29 // DISPON, // ? in Espruino module? //^ wCD (0x36,0x48); // MADCTL ,0x48, // -^ from here wCD (0xB7,0x07); // // ? in ESP32 CYD ? wCD (0xB6,[0x0A,0x82,0x27,0x00]); // DISCTRL,0x0A,0xA2, // v to here, 2nd and additional wCMD(0x11); ce.write(1); // // ? in ESP32 CYD ? eod_20250127_ao