acidportal- 😈 Worlds smallest Evil Portal on a LilyGo T-QT |
git clone git://git.acid.vegas/acidportal.git |
Log | Files | Refs | Archive | README | LICENSE |
SSD1351_Init.h (901B)
1 { 2 writecommand(0xFD); // COMMANDLOCK 3 writedata(0x12); 4 writecommand(0xFD); // COMMANDLOCK 5 writedata(0xB1); 6 writecommand(0xAE); // DISPLAYOFF 7 writecommand(0xB3); // CLOCKDIV 8 writedata(0xF1); 9 writecommand(0xCA); // MUXRATIO 10 writedata(127); 11 writecommand(0xA2); // DISPLAYOFFSET 12 writedata(0x00); 13 writecommand(0xB5); // SETGPIO 14 writedata(0x00); 15 writecommand(0xAB); // FUNCTIONSELECT 16 writedata(0x01); 17 writecommand(0xB1); // PRECHARGE 18 writedata(0x32); 19 writecommand(0xBE); // VCOMH 20 writedata(0x05); 21 writecommand(0xA6); // NORMALDISPLAY 22 writecommand(0xC1); // CONTRASTABC 23 writedata(0xC8); 24 writedata(0x80); 25 writedata(0xC8); 26 writecommand(0xC7); // CONTRASTMASTER 27 writedata(0x0F); 28 writecommand(0xB4); // SETVSL 29 writedata(0xA0); 30 writedata(0xB5); 31 writedata(0x55); 32 writecommand(0xB6); // PRECHARGE2 33 writedata(0x01); 34 writecommand(0xAF); // DISPLAYON 35 }