-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e652536
commit 0cf7829
Showing
16 changed files
with
108 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
#include "nanobake.h" | ||
#include "applications/main/system_info/system_info.h" | ||
|
||
void nb_app_start(nb_platform_t _Nonnull* platform, nb_app_config_t _Nonnull* config) { | ||
void nb_app_start(nb_platform_t _Nonnull* platform, nb_app_t _Nonnull* config) { | ||
lv_obj_t* scr = lv_scr_act(); | ||
ESP_ERROR_CHECK(nb_app_config_validate(config)); | ||
ESP_ERROR_CHECK(nb_app_validate(config)); | ||
config->on_create(platform, scr); | ||
} | ||
|
||
extern void nanobake_run(nb_platform_config_t _Nonnull* config) { | ||
nb_platform_t _Nonnull* platform = nb_platform_create(config); | ||
nb_app_config_t app_config = system_info_app_config(); | ||
nb_app_start(platform, &app_config); | ||
|
||
nb_app_start(platform, config->apps[0]); | ||
// nb_app_start(platform, &system_info_app); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
#include "nb_touch.h" | ||
#include "nb_assert.h" | ||
#include <esp_check.h> | ||
|
||
nb_touch_t _Nonnull* nb_touch_create(nb_touch_driver_t _Nonnull* driver) { | ||
nb_touch_t _Nonnull* touch = malloc(sizeof(nb_touch_t)); | ||
assert(driver->init_io(&(touch->io_handle)) == ESP_OK); | ||
driver->create_touch(touch->io_handle, &(touch->touch_handle)); | ||
bool success = driver->create_touch( | ||
&(touch->io_handle), | ||
&(touch->touch_handle) | ||
); | ||
NB_ASSERT(success, "touch driver failed"); | ||
return touch; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.