This commit is contained in:
kraus 2022-12-17 11:32:15 +01:00
commit f22a5a8420
2 changed files with 51 additions and 4 deletions

View File

@ -476,6 +476,29 @@ static const uint8_t u8x8_d_ssd1322_128x64_init_seq[] = {
U8X8_CA(0xa1, 0x00), /* display start line */
U8X8_CA(0xab, 0x01), /* Enable Internal VDD Regulator */
/*
A[0]=0b, Horizontal address increment [reset] ***
A[0]=1b, Vertical address increment
A[1]=0b, Disable Column Address Re-map [reset]
A[1]=1b, Enable Column Address Re-map ***
A[2]=0b, Disable Nibble Re-map [reset]
A[2]=1b, Enable Nibble Re-map ***
A[4]=0b, Scan from COM0 to COM[N 1] [reset]
A[4]=1b, Scan from COM[N-1] to COM0, where N is the ***
Multiplex ratio
A[5]=0b, Disable COM Split Odd Even [reset] ***
A[5]=1b, Enable COM Split Odd Even
B[4], Enable / disable Dual COM Line mode
0b, Disable Dual COM mode [reset]
1b, Enable Dual COM mode (MUX 63)
0x16 = 00010110
*/
//U8X8_CAA(0xa0, 0x14, 0x11), /* Set Re-Map / Dual COM Line Mode */
//U8X8_CAA(0xa0, 0x06, 0x011), /* Set Re-Map / Dual COM Line Mode */
U8X8_CAA(0xa0, 0x16, 0x011), /* Set Re-Map / Dual COM Line Mode (NHD-2.7-12864WDW3-M datasheet) */

View File

@ -396,8 +396,8 @@ static const uint8_t u8x8_d_ssd1362_256x64_init_seq[] = {
U8X8_CA(0xfd, 0x12), /* unlock */
U8X8_C(0xae), /* display off */
U8X8_C(0XFD), //Set Command Lock
U8X8_C(0X12), //(12H=Unlock,16H=Lock)
//U8X8_C(0XFD), //Set Command Lock
//U8X8_C(0X12), //(12H=Unlock,16H=Lock)
U8X8_C(0XAE), //Display OFF(Sleep Mode)
@ -412,8 +412,32 @@ static const uint8_t u8x8_d_ssd1362_256x64_init_seq[] = {
U8X8_C(0X81), //Set contrast
U8X8_C(0x2f),
U8X8_C(0XA0), //Set Remap
U8X8_C(0Xc3),
/*
Re- map setting in Graphic Display Data RAM
(GDDRAM)
A[0] = 0b, Disable Column Address Re-map (RESET)
A[0] = 1b, Enable Column Address Re-map ***
A[1] = 0b, Disable Nibble Re-map (RESET)
A[1] = 1b, Enable Nibble Re-map ***
A[2] = 0b, Enable Horizontal Address Increment (RESET) ***
A[2] = 1b, Enable Vertical Address Increment
A[4] = 0b, Disable COM Re-map (RESET)
A[4] = 1b, Enable COM Re-map
A[6] = 0b, Disable SEG Split Odd Even ***
A[6] = 1b, Enable SEG Split Odd Even (RESET)
A[7] = 0b, Disable SEG left/right remap (RESET)
A[7] = 1b, Enable SEG left/right remap
?00?0011 --> 0x03 0x83 0x13 0x93
*/
U8X8_CA(0XA0, 0xc3), //Set Remap c3 = 11000011
U8X8_C(0XA1), //Set Display Start Line
U8X8_C(0X00),