@@ -49,6 +49,12 @@ BBEP_GRAY3, BBEP_GRAY2, BBEP_GRAY1, BBEP_GRAY0, BBEP_GRAY3, BBEP_GRAY2, BBEP_GRA
4949BBEP_GRAY3, BBEP_GRAY2, BBEP_GRAY1, BBEP_GRAY0, BBEP_GRAY3, BBEP_GRAY2, BBEP_GRAY1, BBEP_GRAY0
5050};
5151
52+ // 2-bit grayscale mode (some swapped)
53+ const uint8_t u8Colors_4gray_v2[16 ] = {
54+ BBEP_GRAY3, BBEP_GRAY1, BBEP_GRAY2, BBEP_GRAY0, BBEP_GRAY3, BBEP_GRAY1, BBEP_GRAY2, BBEP_GRAY0,
55+ BBEP_GRAY3, BBEP_GRAY2, BBEP_GRAY1, BBEP_GRAY0, BBEP_GRAY3, BBEP_GRAY1, BBEP_GRAY2, BBEP_GRAY0
56+ };
57+
5258// the 4-color mode
5359const uint8_t u8Colors_4clr[16 ] = { // black white red yellow
5460 BBEP_BLACK, BBEP_WHITE, BBEP_RED, BBEP_YELLOW, BBEP_BLACK, BBEP_WHITE, BBEP_RED, BBEP_YELLOW,
@@ -646,7 +652,7 @@ const uint8_t epd75_init_sequence_partial[] PROGMEM = {
646652};
647653const uint8_t epd75_init_fast_gen2[] PROGMEM = {
648654 0x02 , 0x00 , 0x1f , // panel setting
649- 0x03 , 0x50 , 0x10 , 0x07 ,
655+ 0x03 , 0x50 , 0x21 , 0x07 ,
650656 0x01 , 0x04 , // power on
651657 BUSY_WAIT,
652658 0x05 , 0x06 , 0x27 , 0x27 , 0x18 , 0x17 ,
@@ -656,14 +662,17 @@ const uint8_t epd75_init_fast_gen2[] PROGMEM = {
656662};
657663
658664const uint8_t epd75_init_partial_gen2[] PROGMEM = {
665+ 0x01 , 0x04 , // power on
666+ BUSY_WAIT,
667+ 0x02 , 0xe0 , 0x02 ,
668+ 0x02 , 0xe5 , 0x5a ,
659669 0x02 , 0x00 , 0x1f , // panel setting
660- // 0x03, 0x50, 0x10 , 0x07,
670+ 0x03 , 0x50 , 0x21 , 0x07 ,
661671 0x01 , 0x04 , // power on
662672 BUSY_WAIT,
663673 0x05 , 0x06 , 0x27 , 0x27 , 0x18 , 0x17 ,
664674 0x02 , 0xe0 , 0x02 ,
665675 0x02 , 0xe5 , 0x6e ,
666- 0x03 , 0x50 , 0xa9 , 0x07 ,
667676 0
668677};
669678
@@ -2095,8 +2104,8 @@ const EPD_PANEL panelDefs[] PROGMEM = {
20952104 {240 , 416 , 0 , epd37_init_sequence_full, NULL , epd37_init_sequence_part, 0 , BBEP_CHIP_UC81xx, u8Colors_2clr}, // EP37_240x416
20962105 {104 , 212 , 0 , epd213_inky_init_sequence_full, NULL , NULL , 0 , BBEP_CHIP_UC81xx, u8Colors_2clr}, // EP213_104x212, older InkyPHAT black and white
20972106 {800 , 480 , 0 , epd75_init_sequence_full, epd75_init_sequence_fast, epd75_init_sequence_partial, 0 , BBEP_CHIP_UC81xx, u8Colors_2clr}, // EP75_800x480
2098- {800 , 480 , 0 , epd75_init_sequence_full, epd75_init_fast_gen2, epd75_init_sequence_partial , 0 , BBEP_CHIP_UC81xx, u8Colors_2clr}, // EP75_800x480_GEN2
2099- {800 , 480 , 0 , epd75_gray_init, NULL , NULL , BBEP_4GRAY, BBEP_CHIP_UC81xx, u8Colors_4gray }, // EP75_800x480_4GRAY_GEN2
2107+ {800 , 480 , 0 , epd75_init_sequence_full, epd75_init_fast_gen2, epd75_init_partial_gen2 , 0 , BBEP_CHIP_UC81xx, u8Colors_2clr}, // EP75_800x480_GEN2
2108+ {800 , 480 , 0 , epd75_gray_init, NULL , NULL , BBEP_4GRAY, BBEP_CHIP_UC81xx, u8Colors_4gray_v2 }, // EP75_800x480_4GRAY_GEN2
21002109 {800 , 480 , 0 , epd75_old_gray_init, NULL , NULL , BBEP_4GRAY, BBEP_CHIP_UC81xx, u8Colors_4gray}, // EP75_800x480_4GRAY
21012110 {800 , 480 , 0 , epd75_old_gray_init2, NULL , NULL , BBEP_4GRAY, BBEP_CHIP_UC81xx, u8Colors_4gray}, // EP75_800x480_4GRAY_V2
21022111 {128 , 296 , 0 , epd29_init_sequence_full, epd29_init_sequence_fast, epd29_init_sequence_part, 0 , BBEP_CHIP_UC81xx, u8Colors_2clr}, // Badger 2040
0 commit comments