mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-11-23 18:15:34 +00:00
Created Create a simple app (markdown)
parent
4f2216c965
commit
e34eca029f
27
Create-a-simple-app.md
Normal file
27
Create-a-simple-app.md
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user