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

RM68140_Init.h (1422B)

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