From c0cec91c3fe6bc991c53c028a21711f21efb3704 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Mon, 1 Mar 2021 20:35:59 -0500 Subject: Use header and footer methods in apps --- apps/home_menu.cpp | 2 +- apps/main_clock.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'apps') 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; } -- cgit v1.2.3-54-g00ecf