/* last byte: 0x030 horizontal increment (dir = 0) */
/* last byte: 0x038 vertical increment (dir = 1) */
/* last byte: 0x000 horizontal deccrement (dir = 2) */
/* last byte: 0x008 vertical deccrement (dir = 3) */
UCG_C22(0x000,0x003,0xc0|0x010,0x030),/* Entry Mode, GRAM write direction and BGR (Bit 12)=1, set TRI (Bit 15) and DFM (Bit 14) --> three byte transfer */
UCG_C10(0x020),UCG_VARX(0,0x00,0),UCG_VARX(0,0x0ff,0),/* set x position */
UCG_C10(0x021),UCG_VARY(8,0x01,0),UCG_VARY(0,0x0ff,0),/* set y position */
/* last byte: 0x030 horizontal increment (dir = 0) */
/* last byte: 0x038 vertical increment (dir = 1) */
/* last byte: 0x000 horizontal deccrement (dir = 2) */
/* last byte: 0x008 vertical deccrement (dir = 3) */
UCG_C22(0x000,0x003,0xc0|0x010,0x038),/* Entry Mode, GRAM write direction and BGR (Bit 12)=1, set TRI (Bit 15) and DFM (Bit 14) --> three byte transfer */
UCG_C10(0x020),UCG_VARX(0,0x00,0),UCG_VARX(0,0x0ff,0),/* set x position */
UCG_C10(0x021),UCG_VARY(8,0x01,0),UCG_VARY(0,0x0ff,0),/* set y position */
/* last byte: 0x030 horizontal increment (dir = 0) */
/* last byte: 0x038 vertical increment (dir = 1) */
/* last byte: 0x000 horizontal deccrement (dir = 2) */
/* last byte: 0x008 vertical deccrement (dir = 3) */
UCG_C22(0x000,0x003,0xc0|0x010,0x000),/* Entry Mode, GRAM write direction and BGR (Bit 12)=1, set TRI (Bit 15) and DFM (Bit 14) --> three byte transfer */
UCG_C10(0x020),UCG_VARX(0,0x00,0),UCG_VARX(0,0x0ff,0),/* set x position */
UCG_C10(0x021),UCG_VARY(8,0x01,0),UCG_VARY(0,0x0ff,0),/* set y position */
/* last byte: 0x030 horizontal increment (dir = 0) */
/* last byte: 0x038 vertical increment (dir = 1) */
/* last byte: 0x000 horizontal deccrement (dir = 2) */
/* last byte: 0x008 vertical deccrement (dir = 3) */
UCG_C22(0x000,0x003,0xc0|0x010,0x008),/* Entry Mode, GRAM write direction and BGR (Bit 12)=1, set TRI (Bit 15) and DFM (Bit 14) --> three byte transfer */
UCG_C10(0x020),UCG_VARX(0,0x00,0),UCG_VARX(0,0x0ff,0),/* set x position */
UCG_C10(0x021),UCG_VARY(8,0x01,0),UCG_VARY(0,0x0ff,0),/* set y position */
UCG_C11(0x004,0x000),/* REDUCE_CURRENT: normal operation, no current reduction */
UCG_C11(0x003,0x030),/* CLK_DIV: 90Hz, ratio 1 */
UCG_C11(0x008,0x000),/* Precharge time red */
UCG_C11(0x009,0x000),/* Precharge time green */
UCG_C11(0x00a,0x000),/* Precharge time blue */
UCG_C11(0x00b,0x000),/* Precharge current red */
UCG_C11(0x00c,0x000),/* Precharge current green */
UCG_C11(0x00d,0x000),/* Precharge current blue */
UCG_C11(0x010,0x04a),/* Driving current red */
UCG_C11(0x011,0x025),/* Driving current green, original value 0x011 replaced by 0x025 */
UCG_C11(0x012,0x02f),/* Driving current blue */
UCG_C11(0x013,0x000),/* Display mode: RGB,column=0..127,column data display control=Normal Dispaly */
UCG_C11(0x014,0x001),/* External interface: 18 bit, MPU, Bit size does not matter if MPU is selected*/
//UCG_C11(0x016, 0x076), /* Memory Mode: 6bits triple transfer (would require 6bit words on SPI, 262K support, horizontal inc., vertical inc., data continuously written horizontally */
UCG_C11(0x016,0x066),/* Memory Mode: dual transfer (2x 8Bit), 65K support, horizontal inc., vertical inc., data continuously written horizontally */
UCG_C11(0x004,0x000),/* REDUCE_CURRENT: normal operation, no current reduction */
UCG_C11(0x003,0x030),/* CLK_DIV: 90Hz, ratio 1 */
UCG_C11(0x005,0x000),/* Software Reset */
UCG_C11(0x008,0x003),/* Precharge time red */
UCG_C11(0x009,0x004),/* Precharge time green */
UCG_C11(0x00a,0x005),/* Precharge time blue */
UCG_C11(0x00b,0x00b),/* Precharge current red */
UCG_C11(0x00c,0x00b),/* Precharge current green */
UCG_C11(0x00d,0x00e),/* Precharge current blue */
UCG_C11(0x010,0x03e),/* Driving current red */
UCG_C11(0x011,0x032),/* Driving current green, original value 0x011 replaced by 0x025 */
UCG_C11(0x012,0x03d),/* Driving current blue */
UCG_C11(0x013,0x000),/* Display mode: RGB,column=0..127,column data display control=Normal Dispaly */
UCG_C11(0x014,0x001),/* External interface: 18 bit, MPU, Bit size does not matter if MPU is selected*/
//UCG_C11(0x016, 0x076), /* Memory Mode: 6bits triple transfer (would require 6bit words on SPI, 262K support, horizontal inc., vertical inc., data continuously written horizontally */
UCG_C11(0x015,0x000),
UCG_C11(0x016,0x066),/* Memory Mode: dual transfer (2x 8Bit), 65K support, horizontal inc., vertical inc., data continuously written horizontally */