UCG_C11(0x03a, 0x066), /* set pixel format to 18 bit */ //UCG_C11(0x03a, 0x055), /* set pixel format to 16 bit */ //UCG_C12(0x0b1, 0x000, 0x01b), /* frame rate control (POR values) */ UCG_C14(0x0b6, 0x00a, 0x082 | (1<<5), 0x027, 0x000), /* display function control (POR values, except for shift direction bit) */ //UCG_C11(0x0b7, 0x006), /* entry mode, bit 0: Low voltage detection control (0=off) */ UCG_C11(0x0c0, 0x021), /* power control 1 (reference voltage level), POR=21 */ UCG_C11(0x0c1, 0x002), /* power control 2 (step up factor), POR=2 */ UCG_C11(0x0c7, 0x0c0), /* VCOM control 2, enable VCOM control 1 */ UCG_C12(0x0c5, 0x031, 0x03c), /* VCOM control 1, POR=31,3C */ UCG_C15(0x0cb, 0x039, 0x02c, 0x000, 0x034, 0x002), /* power control A (POR values) */ UCG_C13(0x0cf, 0x000, 0x081, 0x030), /* power control B (POR values) */ UCG_C13(0x0e8, 0x084, 0x011, 0x07a), /* timer driving control A (POR values) */ UCG_C12(0x0ea, 0x066, 0x000), /* timer driving control B (POR values) */ //UCG_C12(0x0ea, 0x000, 0x000), /* timer driving control B */ //UCG_C10(0x28), /* display off */ //UCG_C11(0x0bf, 0x003), /* backlight control 8 */ UCG_C10(0x029), /* display on */ //UCG_C11(0x051, 0x07f), /* brightness */ //UCG_C11(0x053, 0x02c), /* control brightness */ //UCG_C10(0x028), /* display off */ UCG_C11( 0x036, 0x008),
//UCG_C10(0x0ae), /* Set Display Off */ UCG_C10(0x0af), /* Set Display On */ UCG_C10(0x0a6), /* Set Display Mode Reset */ UCG_C11(0x0a0, 0x0b4), /* Set Colour Depth */ UCG_C11(0x0a1, 0x000), /* Set Display Start Line */ UCG_C11(0x0a2, 0x000), /* Set Display Offset */ UCG_C12(0x015, 0x000, 0x07f), /* Set Column Address */ UCG_C12(0x075, 0x000, 0x07f), /* Set Row Address */ UCG_C11(0x0b3, 0x0f1), /* Front Clock Div */ //UCG_C11(0x0ca, 0x07f), /* Set Multiplex Ratio, reset default: 0x7f */ UCG_C11(0x0b5, 0x000), /* Set GPIO */ //UCG_C11(0x0ab, 0x001), /* Set Function Selection, reset default: 0x01 */ UCG_C11(0x0b1, 0x032), /* Set Phase Length, reset default: 0x82 */ UCG_C13(0x0b4, 0xa0,0xb5,0x55), /* Set Segment Low Voltage, reset default: 0xa2 0xb5 0x55 */ //UCG_C11(0x0bb, 0x017), /* Set Precharge Voltage, reset default: 0x17 */ //UCG_C11(0x0be, 0x005), /* Set VComH Voltage, reset default: 0x05 */ UCG_C13(0x0c1, 0xc8, 0x80, 0xc8), /* Set Contrast */ UCG_C11(0x0c7, 0x00f), /* Set Master Contrast (0..15), reset default: 0x05 */ UCG_C11(0x0b6, 0x001), /* Set Second Precharge Period */ // UCG_C10(0x0b8), /* Set CMD Grayscale Lookup, 63 Bytes follow */ // UCG_A8(0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c), // UCG_A8(0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14), // UCG_A8(0x15,0x16,0x18,0x1a,0x1b,0x1C,0x1D,0x1F), // UCG_A8(0x21,0x23,0x25,0x27,0x2A,0x2D,0x30,0x33), // UCG_A8(0x36,0x39,0x3C,0x3F,0x42,0x45,0x48,0x4C), // UCG_A8(0x50,0x54,0x58,0x5C,0x60,0x64,0x68,0x6C), // UCG_A8(0x70,0x74,0x78,0x7D,0x82,0x87,0x8C,0x91), // UCG_A7(0x96,0x9B,0xA0,0xA5,0xAA,0xAF,0xB4),