acidportal

- 😈 Worlds smallest Evil Portal on a LilyGo T-QT
git clone git://git.acid.vegas/acidportal.git
Log | Files | Refs | Archive | README | LICENSE

HX8357B_Init.h (1394B)

      1 
      2 // This is the command sequence that initialises the HX8357B driver
      3 //
      4 // This setup information uses simple 8 bit SPI writecommand() and writedata() functions
      5 //
      6 // See ST7735_Setup.h file for an alternative format
      7 
      8 
      9 // Configure HX8357-B display
     10     writecommand(0x11);
     11     delay(20);
     12     writecommand(0xD0);
     13     writedata(0x07);
     14     writedata(0x42);
     15     writedata(0x18);
     16 
     17     writecommand(0xD1);
     18     writedata(0x00);
     19     writedata(0x07);
     20     writedata(0x10);
     21 
     22     writecommand(0xD2);
     23     writedata(0x01);
     24     writedata(0x02);
     25 
     26     writecommand(0xC0);
     27     writedata(0x10);
     28     writedata(0x3B);
     29     writedata(0x00);
     30     writedata(0x02);
     31     writedata(0x11);
     32 
     33     writecommand(0xC5);
     34     writedata(0x08);
     35 
     36     writecommand(0xC8);
     37     writedata(0x00);
     38     writedata(0x32);
     39     writedata(0x36);
     40     writedata(0x45);
     41     writedata(0x06);
     42     writedata(0x16);
     43     writedata(0x37);
     44     writedata(0x75);
     45     writedata(0x77);
     46     writedata(0x54);
     47     writedata(0x0C);
     48     writedata(0x00);
     49 
     50     writecommand(0x36);
     51     writedata(0x0a);
     52 
     53     writecommand(0x3A);
     54     writedata(0x55);
     55 
     56     writecommand(0x2A);
     57     writedata(0x00);
     58     writedata(0x00);
     59     writedata(0x01);
     60     writedata(0x3F);
     61 
     62     writecommand(0x2B);
     63     writedata(0x00);
     64     writedata(0x00);
     65     writedata(0x01);
     66     writedata(0xDF);
     67 
     68     delay(120);
     69     writecommand(0x29);
     70 
     71     delay(25);
     72 
     73 // End of HX8357B display configuration
     74 
     75 
     76