Integrate RGB backlight into API + add to xfw app

This commit is contained in:
Willy-JL
2023-03-20 23:09:41 +00:00
parent 2a834bedeb
commit d05a3b7ec9
10 changed files with 71 additions and 31 deletions

View File

@@ -139,6 +139,7 @@ XtremeApp* xtreme_app_alloc() {
XtremeApp* app = malloc(sizeof(XtremeApp));
app->gui = furi_record_open(RECORD_GUI);
app->dialogs = furi_record_open(RECORD_DIALOGS);
app->notification = furi_record_open(RECORD_NOTIFICATION);
// View Dispatcher and Scene Manager
app->view_dispatcher = view_dispatcher_alloc();
@@ -301,6 +302,7 @@ void xtreme_app_free(XtremeApp* app) {
furi_string_free(app->version_tag);
// Records
furi_record_close(RECORD_NOTIFICATION);
furi_record_close(RECORD_DIALOGS);
furi_record_close(RECORD_GUI);
free(app);