diff options
author | ConfuSomu | 2021-03-01 20:35:59 -0500 |
---|---|---|
committer | ConfuSomu | 2021-03-01 20:35:59 -0500 |
commit | c0cec91c3fe6bc991c53c028a21711f21efb3704 (patch) | |
tree | 87eeaaa852cebd76a9c20c309b9b60d528032ba9 /apps | |
parent | 7c452f2abe26f7dbcd2646f0be944f03d96f0b44 (diff) | |
download | pico-watch-c0cec91c3fe6bc991c53c028a21711f21efb3704.tar pico-watch-c0cec91c3fe6bc991c53c028a21711f21efb3704.tar.gz pico-watch-c0cec91c3fe6bc991c53c028a21711f21efb3704.zip |
Use header and footer methods in apps
Diffstat (limited to 'apps')
-rw-r--r-- | apps/home_menu.cpp | 2 | ||||
-rw-r--r-- | apps/main_clock.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/home_menu.cpp b/apps/home_menu.cpp index a3a0691..658d911 100644 --- a/apps/home_menu.cpp +++ b/apps/home_menu.cpp @@ -32,7 +32,7 @@ namespace app_home_menu { // title with time title_str(datetime_str, sizeof(datetime_buf), &t); - app_api->display_write_string(0,0,0, datetime_str, FONT_8x8, 0, 1); + app_api->gui_header_text((std::string)datetime_str); } // Rendering of app diff --git a/apps/main_clock.cpp b/apps/main_clock.cpp index 9933775..21c9e5d 100644 --- a/apps/main_clock.cpp +++ b/apps/main_clock.cpp @@ -47,14 +47,13 @@ namespace app_main_clock { // date date_as_str(datetime_str, sizeof(datetime_buf), &t); - app_api->display_write_string(0,0,7, datetime_str, FONT_8x8, 0, 1); + app_api->gui_footer_text((std::string)datetime_str); } // Rendering of the app int render(Api *app_api) { - app_api->display_write_string(0,15,0, (char *)"Test clock", FONT_8x8, 0, 1); + app_api->gui_header_text("Test clock", 17); show_datetime(app_api); - //app_api->display_write_string(0,0,0, &data[0], FONT_6x8, 0, 1); return 0; } |