Skip to content

Commit

Permalink
The application that runs
Browse files Browse the repository at this point in the history
  • Loading branch information
vvzvlad committed Dec 15, 2021
1 parent 929e2fd commit b46be46
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions applications/counter/counter.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#include <furi.h>
#include <furi-hal.h>
#include <gui/gui.h>


int32_t counter_app(void* p) {
ViewPort* view_port = view_port_alloc();
Gui* gui = furi_record_open("gui");
gui_add_view_port(gui, view_port, GuiLayerFullscreen);

delay(2000);

gui_remove_view_port(gui, view_port);
furi_record_close("gui");
view_port_free(view_port);
return 0;
}

0 comments on commit b46be46

Please sign in to comment.