Start working with LCD color inversion

This commit is contained in:
Dmitry422
2025-04-08 18:00:10 +07:00
parent 33fa903f7a
commit 7507058870
6 changed files with 83 additions and 11 deletions

View File

@@ -56,10 +56,6 @@ void night_shift_timer_callback(void* context) {
NotificationApp* app = context;
DateTime current_date_time;
// IN DEVELOPMENT
// // save current night_shift;
// float old_night_shift = app->current_night_shift;
// take system time and convert to minutes
furi_hal_rtc_get_datetime(&current_date_time);
uint32_t time = current_date_time.hour * 60 + current_date_time.minute;
@@ -73,12 +69,6 @@ void night_shift_timer_callback(void* context) {
app->current_night_shift = app->settings.night_shift;
app->rgb_srv->current_night_shift = app->settings.night_shift;
}
// IN DEVELOPMENT
// // if night shift was changed then update stock and rgb backlight to new value
// if(old_night_shift != app->current_night_shift) {
// notification_message(app, &sequence_display_backlight_on);
// }
}
// --- NIGHT SHIFT END ---

View File

@@ -34,7 +34,7 @@ typedef struct {
Light light;
} NotificationLedLayer;
#define NOTIFICATION_SETTINGS_VERSION 0x03
#define NOTIFICATION_SETTINGS_VERSION 0x04
#define NOTIFICATION_SETTINGS_PATH INT_PATH(NOTIFICATION_SETTINGS_FILE_NAME)
typedef struct {
@@ -48,8 +48,11 @@ typedef struct {
float night_shift;
uint32_t night_shift_start;
uint32_t night_shift_end;
bool lcd_inverse;
} NotificationSettings;
//extern NotificationSettings settings;
struct NotificationApp {
FuriMessageQueue* queue;
FuriPubSub* event_record;