(deleted)
Register 0xB6 contains the hardware direction scan bits e.g. SS and GS.
You don't say whether you are Portrait or Landscape. Or whether you want to mirror right->left or bottom->top
David.
(deleted)
You edit the CPP file:
case 0x7796:
lcd_driver = ID_7796;
//WIDTH = 128,HEIGHT = 160;
//width = WIDTH, height = HEIGHT;
XC=ILI9341_COLADDRSET,YC=ILI9341_PAGEADDRSET,CC=ILI9341_MEMORYWRITE,RC=HX8357_RAMRD,SC1=0x33,SC2=0x37,MD=ILI9341_MADCTL,VL=0,R24BIT=0;
static const uint8_t ST7796S_regValues[] PROGMEM =
{
0xF0, 1, 0xC3,
0xF0, 1, 0x96,
0x36, 1, 0x68,
0x3A, 1, 0x05,
0xB0, 1, 0x80,
0xB6, 2, 0x20, 0x02, //change this line to 0xB6, 2, 0x20, 0x22,
0xB5, 4, 0x02, 0x03, 0x00, 0x04,
0xB1, 2, 0x80, 0x10,
0xB4, 1, 0x00,
0xB7, 1, 0xC6,
0xC5, 1, 0x24,
0xE4, 1, 0x31,
0xE8, 8, 0x40, 0x8A, 0x00, 0x00, 0x29, 0x19, 0xA5, 0x33,
0xC2, 0,
0xA7, 0,
0xE0, 14,0xF0, 0x09, 0x13, 0x12, 0x12, 0x2B, 0x3C, 0x44, 0x4B, 0x1B, 0x18, 0x17, 0x1D, 0x21,
0xE1, 14,0xF0, 0x09, 0x13, 0x0C, 0x0D, 0x27, 0x3B, 0x44, 0x4D, 0x0B, 0x17, 0x17, 0x1D, 0x21,
0x36, 1, 0xEC,
0xF0, 1, 0xC3,
0xF0, 1, 0x69,
0x13, 0,
0x11, 0,
0x29, 0
};
init_table8(ST7796S_regValues, sizeof(ST7796S_regValues));
break;
Yes, the current MCUFRIEND_kbv Beta on Github supports the shiield as 16-bit and as 8-bit
The regular v2.9.8 Release only supports the 16-bit version of the shield.
David.
(deleted)