aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/home_menu.cpp2
-rw-r--r--apps/main_clock.cpp5
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;
}