کد:
static const uint16_t ILI932x_regValues[] PROGMEM = {
ILI932X_START_OSC , 0x3008, // Start oscillator
TFTLCD_DELAY , 50, // 50 millisecond delay
ILI932X_DRIV_OUT_CTRL , 0x0100,
ILI932X_DRIV_WAV_CTRL , 0x0700,
ILI932X_ENTRY_MOD , 0x1030,
ILI932X_RESIZE_CTRL , 0x0000,
ILI932X_DISP_CTRL1 , 0x0000,
ILI932X_DISP_CTRL2 , 0x0000,
ILI932X_DISP_CTRL3 , 0x0000,
ILI932X_RGB_DISP_IF_CTRL1, 0x0000,
ILI932X_FRM_MARKER_POS , 0x0000,
ILI932X_RGB_DISP_IF_CTRL2, 0x0000,
ILI932X_POW_CTRL1 , 0x0000,
ILI932X_POW_CTRL2 , 0x0000,
ILI932X_POW_CTRL3 , 0x0000,
TFTLCD_DELAY , 200,
ILI932X_POW_CTRL1 , 0x1190,
ILI932X_POW_CTRL2 , 0x0005,
TFTLCD_DELAY , 60,
ILI932X_POW_CTRL3 , 0x01b8,
TFTLCD_DELAY , 60,
ILI932X_POW_CTRL4 , 0x3600,
ILI932X_POW_CTRL7 , 0x0001,
TFTLCD_DELAY , 60,
ILI932X_GAMMA_CTRL1 , 0x0101,
ILI932X_GAMMA_CTRL2 , 0x0506,
ILI932X_GAMMA_CTRL3 , 0x0405,
ILI932X_GAMMA_CTRL4 , 0x0007,
ILI932X_GAMMA_CTRL5 , 0x0008,
ILI932X_GAMMA_CTRL6 , 0x0203,
ILI932X_GAMMA_CTRL7 , 0x0102,
ILI932X_GAMMA_CTRL8 , 0x0706,
ILI932X_GAMMA_CTRL9 , 0x0700,
ILI932X_GAMMA_CTRL10 , 0x0008,
ILI932X_GRAM_HOR_AD , 0x0000,
ILI932X_GRAM_VER_AD , 0x0000,
ILI932X_HOR_START_AD , 0x0000,
ILI932X_HOR_END_AD , 0x00EF,
ILI932X_VER_START_AD , 0X0000,
ILI932X_VER_END_AD , 0x018F,
ILI932X_GATE_SCAN_CTRL1 , 0x3100, // Driver Output Control (R60h)
ILI932X_PANEL_IF_CTRL1 , 0X0010, // Panel Interface Control 1 (R90h)
ILI932X_PANEL_IF_CTRL2 , 0X0000,
ILI932X_PANEL_IF_CTRL3 , 0X0003,
ILI932X_PANEL_IF_CTRL4 , 0X1100,
ILI932X_PANEL_IF_CTRL5 , 0X0000,
ILI932X_PANEL_IF_CTRL6 , 0X0000,
ILI932X_DISP_CTRL1 , 0x0173, // Main screen turn on
};