This commit is contained in:
kraus 2023-01-08 17:40:23 +01:00
parent b42953b87a
commit cd44b05388
1 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ uint8_t u8x8_d_gu800_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *ar
#endif
#ifdef U8X8_WITH_SET_CONTRAST
case U8X8_MSG_DISPLAY_SET_CONTRAST:
u8x8_cad_SendCmd(u8x8, 0x40 | (arg_int >> 4) ); /* GU800 has range from 0..15 */
u8x8_cad_SendCmd(u8x8, 0x4f - ((arg_int >> 4)&0x0f) ); /* GU800 has range from 0..15, max brightness is 0x040 */
break;
#endif
case U8X8_MSG_DISPLAY_DRAW_TILE:
@ -158,7 +158,7 @@ static const uint8_t u8x8_d_gu800_128x64_init_seq[] = {
U8X8_CA(0x70, 0), /* horizontal shift */
U8X8_C(0xb0), /* vertical shift */
U8X8_C(0x4f), /* max brightness */
U8X8_C(0x40), /* min (0x04f) / max (0x040) brightness */
U8X8_C(0x84), /* x increment */
// U8X8_CA(0x024, 0x040) /* display on */
@ -236,7 +236,7 @@ static const uint8_t u8x8_d_gu800_160x16_init_seq[] = {
U8X8_CA(0x70, 0), /* horizontal shift */
U8X8_C(0xb0), /* vertical shift */
U8X8_C(0x4f), /* max brightness */
U8X8_C(0x40), /* min (0x04f) / max (0x040) brightness */
U8X8_C(0x84), /* x increment */
// U8X8_CA(0x024, 0x040) /* display on */