0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-18 14:19:49 +03:00

fix contrast bug

This commit is contained in:
OneOfEleven
2023-11-03 23:14:56 +00:00
parent 2c007d7e50
commit 935e552b02
10 changed files with 12 additions and 31 deletions

View File

@ -245,7 +245,7 @@ void ST7565_WriteByte(const uint8_t Value)
#ifdef ENABLE_CONTRAST
void ST7565_SetContrast(const uint8_t value)
{
contrast = (value <= 63) ? value : 63;
contrast = (value > 45) ? 45 : (value < 26) ? 26 : value;
}
uint8_t ST7565_GetContrast(void)