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

GC9A01_Init.h (3748B)

      1 
      2 // This is the command sequence that initialises the GC9A01 driver
      3 
      4 {
      5   writecommand(0xEF);
      6   writecommand(0xEB);
      7   writedata(0x14);
      8 
      9   writecommand(0xFE);
     10   writecommand(0xEF);
     11 
     12   writecommand(0xEB);
     13   writedata(0x14);
     14 
     15   writecommand(0x84);
     16   writedata(0x40);
     17 
     18   writecommand(0x85);
     19   writedata(0xFF);
     20 
     21   writecommand(0x86);
     22   writedata(0xFF);
     23 
     24   writecommand(0x87);
     25   writedata(0xFF);
     26 
     27   writecommand(0x88);
     28   writedata(0x0A);
     29 
     30   writecommand(0x89);
     31   writedata(0x21);
     32 
     33   writecommand(0x8A);
     34   writedata(0x00);
     35 
     36   writecommand(0x8B);
     37   writedata(0x80);
     38 
     39   writecommand(0x8C);
     40   writedata(0x01);
     41 
     42   writecommand(0x8D);
     43   writedata(0x01);
     44 
     45   writecommand(0x8E);
     46   writedata(0xFF);
     47 
     48   writecommand(0x8F);
     49   writedata(0xFF);
     50 
     51   writecommand(0xB6);
     52   writedata(0x00);
     53   writedata(0x20);
     54 
     55   writecommand(0x3A);
     56   writedata(0x05);
     57 
     58   writecommand(0x90);
     59   writedata(0x08);
     60   writedata(0x08);
     61   writedata(0x08);
     62   writedata(0x08);
     63 
     64   writecommand(0xBD);
     65   writedata(0x06);
     66 
     67   writecommand(0xBC);
     68   writedata(0x00);
     69 
     70   writecommand(0xFF);
     71   writedata(0x60);
     72   writedata(0x01);
     73   writedata(0x04);
     74 
     75   writecommand(0xC3);
     76   writedata(0x13);
     77   writecommand(0xC4);
     78   writedata(0x13);
     79 
     80   writecommand(0xC9);
     81   writedata(0x22);
     82 
     83   writecommand(0xBE);
     84   writedata(0x11);
     85 
     86   writecommand(0xE1);
     87   writedata(0x10);
     88   writedata(0x0E);
     89 
     90   writecommand(0xDF);
     91   writedata(0x21);
     92   writedata(0x0c);
     93   writedata(0x02);
     94 
     95   writecommand(0xF0);
     96   writedata(0x45);
     97   writedata(0x09);
     98   writedata(0x08);
     99   writedata(0x08);
    100   writedata(0x26);
    101   writedata(0x2A);
    102 
    103   writecommand(0xF1);
    104   writedata(0x43);
    105   writedata(0x70);
    106   writedata(0x72);
    107   writedata(0x36);
    108   writedata(0x37);
    109   writedata(0x6F);
    110 
    111   writecommand(0xF2);
    112   writedata(0x45);
    113   writedata(0x09);
    114   writedata(0x08);
    115   writedata(0x08);
    116   writedata(0x26);
    117   writedata(0x2A);
    118 
    119   writecommand(0xF3);
    120   writedata(0x43);
    121   writedata(0x70);
    122   writedata(0x72);
    123   writedata(0x36);
    124   writedata(0x37);
    125   writedata(0x6F);
    126 
    127   writecommand(0xED);
    128   writedata(0x1B);
    129   writedata(0x0B);
    130 
    131   writecommand(0xAE);
    132   writedata(0x77);
    133 
    134   writecommand(0xCD);
    135   writedata(0x63);
    136 
    137   writecommand(0x70);
    138   writedata(0x07);
    139   writedata(0x07);
    140   writedata(0x04);
    141   writedata(0x0E);
    142   writedata(0x0F);
    143   writedata(0x09);
    144   writedata(0x07);
    145   writedata(0x08);
    146   writedata(0x03);
    147 
    148   writecommand(0xE8);
    149   writedata(0x34);
    150 
    151   writecommand(0x62);
    152   writedata(0x18);
    153   writedata(0x0D);
    154   writedata(0x71);
    155   writedata(0xED);
    156   writedata(0x70);
    157   writedata(0x70);
    158   writedata(0x18);
    159   writedata(0x0F);
    160   writedata(0x71);
    161   writedata(0xEF);
    162   writedata(0x70);
    163   writedata(0x70);
    164 
    165   writecommand(0x63);
    166   writedata(0x18);
    167   writedata(0x11);
    168   writedata(0x71);
    169   writedata(0xF1);
    170   writedata(0x70);
    171   writedata(0x70);
    172   writedata(0x18);
    173   writedata(0x13);
    174   writedata(0x71);
    175   writedata(0xF3);
    176   writedata(0x70);
    177   writedata(0x70);
    178 
    179   writecommand(0x64);
    180   writedata(0x28);
    181   writedata(0x29);
    182   writedata(0xF1);
    183   writedata(0x01);
    184   writedata(0xF1);
    185   writedata(0x00);
    186   writedata(0x07);
    187 
    188   writecommand(0x66);
    189   writedata(0x3C);
    190   writedata(0x00);
    191   writedata(0xCD);
    192   writedata(0x67);
    193   writedata(0x45);
    194   writedata(0x45);
    195   writedata(0x10);
    196   writedata(0x00);
    197   writedata(0x00);
    198   writedata(0x00);
    199 
    200   writecommand(0x67);
    201   writedata(0x00);
    202   writedata(0x3C);
    203   writedata(0x00);
    204   writedata(0x00);
    205   writedata(0x00);
    206   writedata(0x01);
    207   writedata(0x54);
    208   writedata(0x10);
    209   writedata(0x32);
    210   writedata(0x98);
    211 
    212   writecommand(0x74);
    213   writedata(0x10);
    214   writedata(0x85);
    215   writedata(0x80);
    216   writedata(0x00);
    217   writedata(0x00);
    218   writedata(0x4E);
    219   writedata(0x00);
    220 
    221   writecommand(0x98);
    222   writedata(0x3e);
    223   writedata(0x07);
    224 
    225   writecommand(0x35);
    226   writecommand(0x21);
    227 
    228   writecommand(0x11);
    229   delay(120);
    230   writecommand(0x29);
    231   delay(20);
    232 }