From 834e338273b5b391d772f3b13c59ffa97b2b16a7 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Mon, 9 Mar 2026 02:28:08 +0300 Subject: [PATCH] Extend lcd contrast range to full ST756x 6-bit range by ShaTie --- .../notification_settings_app.c | 45 +++++-------------- 1 file changed, 10 insertions(+), 35 deletions(-) diff --git a/applications/settings/notification_settings/notification_settings_app.c b/applications/settings/notification_settings/notification_settings_app.c index e82b02c87..bb4563227 100644 --- a/applications/settings/notification_settings/notification_settings_app.c +++ b/applications/settings/notification_settings/notification_settings_app.c @@ -24,44 +24,19 @@ static const NotificationSequence sequence_note_c = { NULL, }; -#define CONTRAST_COUNT 17 +#define CONTRAST_COUNT 64 const char* const contrast_text[CONTRAST_COUNT] = { - "-8", - "-7", - "-6", - "-5", - "-4", - "-3", - "-2", - "-1", - "0", - "+1", - "+2", - "+3", - "+4", - "+5", - "+6", - "+7", - "+8", + "-32", "-31", "-30", "-29", "-28", "-27", "-26", "-25", "-24", "-23", "-22", "-21", "-20", + "-19", "-18", "-17", "-16", "-15", "-14", "-13", "-12", "-11", "-10", "-9", "-8", "-7", + "-6", "-5", "-4", "-3", "-2", "-1", "0", "+1", "+2", "+3", "+4", "+5", "+6", + "+7", "+8", "+9", "+10", "+11", "+12", "+13", "+14", "+15", "+16", "+17", "+18", "+19", + "+20", "+21", "+22", "+23", "+24", "+25", "+26", "+27", "+28", "+29", "+30", "+31", }; const int32_t contrast_value[CONTRAST_COUNT] = { - -8, - -7, - -6, - -5, - -4, - -3, - -2, - -1, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, + -32, -31, -30, -29, -28, -27, -26, -25, -24, -23, -22, -21, -20, -19, -18, -17, + -16, -15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, }; #define BACKLIGHT_COUNT 21