improvements to apps and drivers

This commit is contained in:
Ken Van Hoeylandt
2023-12-25 18:43:48 +01:00
parent e6525364c6
commit 0cf7829a2d
16 changed files with 108 additions and 114 deletions
+8 -11
View File
@@ -29,14 +29,11 @@ static void prv_on_create(nb_platform_t _Nonnull* platform, lv_obj_t _Nonnull* l
lvgl_port_unlock();
}
nb_app_config_t hello_world_app_config() {
nb_app_config_t config = {
.id = "helloworld",
.name = "Hello World",
.type = USER,
.on_create = &prv_on_create,
.on_update = NULL,
.on_destroy = NULL
};
return config;
}
nb_app_t hello_world_app = {
.id = "helloworld",
.name = "Hello World",
.type = USER,
.on_create = &prv_on_create,
.on_update = NULL,
.on_destroy = NULL
};
+1 -1
View File
@@ -3,6 +3,6 @@
#include "nb_app.h"
nb_app_config_t hello_world_app_config();
extern nb_app_t hello_world_app;
#endif //NANOBAKE_HELLO_WORLD_H
+1 -1
View File
@@ -12,7 +12,7 @@ void app_main(void) {
.display_driver = &board_2432s024_create_display_driver,
.touch_driver = &board_2432s024_create_touch_driver,
.apps = {
&hello_world_app_config
&hello_world_app
}
};