From e34eca029f82a992c405ed2dbeb94901d8662c7e Mon Sep 17 00:00:00 2001 From: Erwin Ried <1091420+eried@users.noreply.github.com> Date: Sat, 20 Jun 2020 00:34:00 +0200 Subject: [PATCH] Created Create a simple app (markdown) --- Create-a-simple-app.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Create-a-simple-app.md diff --git a/Create-a-simple-app.md b/Create-a-simple-app.md new file mode 100644 index 0000000..1e5e04b --- /dev/null +++ b/Create-a-simple-app.md @@ -0,0 +1,27 @@ +This simple application will explain the basic of widgets and simple navigation. + +We are going to create few simple controls and link the app to the main menu. The idea is to get familiar with the way things work. + +# First steps + +There is a lot of flexibility, but for now we are going to follow patterns already found on the source code. For example, the name of the files and classes will be inspired by existing code. + +## Application code + +The following structure is the base of any application. Following the general structure, this files will be created on `\firmware\application\apps\` + +### ui_newapp.hpp + + #include "ui.hpp" + #include "ui_widget.hpp" + + namespace ui { } + +### ui_newapp.cpp + + #include "ui_newapp.hpp" + + using namespace portapack; + namespace ui { } + +## Main class