Skip to content

Commit

Permalink
feat: add logo at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
AdonaiDiazEsparza committed Dec 6, 2024
1 parent d6a09c0 commit 466f9df
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Canbus_app/app_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#define UDS_REQUEST_ID_DEFAULT 0x7e1
#define UDS_RESPONSE_ID_DEFAULT 0x7e9

#define START_TIME 1000

typedef enum {
WorkerflagStop = (1 << 0),
WorkerflagReceived = (1 << 1),
Expand Down
Binary file modified Canbus_app/dist/canbus_app.fap
Binary file not shown.
Binary file modified Canbus_app/dist/debug/canbus_app_d.elf
Binary file not shown.
18 changes: 18 additions & 0 deletions Canbus_app/scenes/mainMenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,24 @@ void basic_scenes_menu_callback(void* context, uint32_t index) {

void app_scene_menu_on_enter(void* context) {
App* app = context;

uint32_t state = scene_manager_get_scene_state(app->scene_manager, app_scene_main_menu);

if(state == 0) {
widget_reset(app->widget);

widget_add_icon_element(app->widget, 40, 1, &I_EC48x26);
widget_add_string_element(
app->widget, 64, 40, AlignCenter, AlignCenter, FontPrimary, "ELECTRONIC CATS");
widget_add_string_element(
app->widget, 64, 50, AlignCenter, AlignCenter, FontSecondary, "Canbus App");

view_dispatcher_switch_to_view(app->view_dispatcher, ViewWidget);

furi_delay_ms(START_TIME);
scene_manager_set_scene_state(app->scene_manager, app_scene_main_menu, 1);
}

submenu_reset(app->submenu);

submenu_set_header(app->submenu, "MENU CANBUS");
Expand Down

0 comments on commit 466f9df

Please sign in to comment.