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

R61581_Init.h (1465B)

      1 
      2 // This is the command sequence that initialises the R61581 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 R61581 display
     10 
     11     writecommand(TFT_SLPOUT);
     12     delay(20);
     13 
     14     writecommand(0xB0);
     15     writedata(0x00);
     16 
     17     writecommand(0xD0);
     18     writedata(0x07);
     19     writedata(0x42);
     20     writedata(0x18);
     21 
     22     writecommand(0xD1);
     23     writedata(0x00);
     24     writedata(0x07);
     25     writedata(0x10);
     26 
     27     writecommand(0xD2);
     28     writedata(0x01);
     29     writedata(0x02);
     30 
     31     writecommand(0xC0);
     32     writedata(0x12);
     33     writedata(0x3B);
     34     writedata(0x00);
     35     writedata(0x02);
     36     writedata(0x11);
     37 
     38     writecommand(0xC5);
     39     writedata(0x03);
     40 
     41     writecommand(0xC8);
     42     writedata(0x00);
     43     writedata(0x32);
     44     writedata(0x36);
     45     writedata(0x45);
     46     writedata(0x06);
     47     writedata(0x16);
     48     writedata(0x37);
     49     writedata(0x75);
     50     writedata(0x77);
     51     writedata(0x54);
     52     writedata(0x0C);
     53     writedata(0x00);
     54 
     55     writecommand(TFT_MADCTL);
     56     writedata(0x0A);
     57 
     58     writecommand(0x3A);
     59     writedata(0x55);
     60 
     61     writecommand(TFT_CASET);
     62     writedata(0x00);
     63     writedata(0x00);
     64     writedata(0x01);
     65     writedata(0x3F);
     66 
     67     writecommand(TFT_PASET);
     68     writedata(0x00);
     69     writedata(0x00);
     70     writedata(0x01);
     71     writedata(0xDF);
     72 
     73     delay(120);
     74     writecommand(TFT_DISPON);
     75 
     76     delay(25);
     77 // End of R61581 display configuration
     78 
     79 
     80