aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/home_menu.cpp8
-rw-r--r--apps/main_clock.cpp10
2 files changed, 9 insertions, 9 deletions
diff --git a/apps/home_menu.cpp b/apps/home_menu.cpp
index 97d4423..a3a0691 100644
--- a/apps/home_menu.cpp
+++ b/apps/home_menu.cpp
@@ -28,18 +28,18 @@ namespace app_home_menu {
char datetime_buf[256];
char *datetime_str = &datetime_buf[0];
datetime_t t;
- app_api->getDatetime(&t);
+ app_api->datetime_get(&t);
// title with time
title_str(datetime_str, sizeof(datetime_buf), &t);
- app_api->dispWriteString(0,0,0, datetime_str, FONT_8x8, 0, 1);
+ app_api->display_write_string(0,0,0, datetime_str, FONT_8x8, 0, 1);
}
// Rendering of app
int render(Api *app_api) {
show_title(app_api);
- app_api->dispWriteString(0,0,2, pressed_button, FONT_6x8, 0, 1);
- app_api->dispWriteString(0,5,3, APPS_NAME[*selected_app], FONT_12x16, 0, 1);
+ app_api->display_write_string(0,0,2, pressed_button, FONT_6x8, 0, 1);
+ app_api->display_write_string(0,5,3, APPS_NAME[*selected_app], FONT_12x16, 0, 1);
return 0;
}
diff --git a/apps/main_clock.cpp b/apps/main_clock.cpp
index 298fed0..9933775 100644
--- a/apps/main_clock.cpp
+++ b/apps/main_clock.cpp
@@ -39,22 +39,22 @@ namespace app_main_clock {
char datetime_buf[256];
char *datetime_str = &datetime_buf[0];
datetime_t t;
- app_api->getDatetime(&t);
+ app_api->datetime_get(&t);
// time
time_as_str(datetime_str, sizeof(datetime_buf), &t);
- app_api->dispWriteString(0,10,3, datetime_str, FONT_12x16, 0, 1);
+ app_api->display_write_string(0,10,3, datetime_str, FONT_12x16, 0, 1);
// date
date_as_str(datetime_str, sizeof(datetime_buf), &t);
- app_api->dispWriteString(0,0,7, datetime_str, FONT_8x8, 0, 1);
+ app_api->display_write_string(0,0,7, datetime_str, FONT_8x8, 0, 1);
}
// Rendering of the app
int render(Api *app_api) {
- app_api->dispWriteString(0,15,0, (char *)"Test clock", FONT_8x8, 0, 1);
+ app_api->display_write_string(0,15,0, (char *)"Test clock", FONT_8x8, 0, 1);
show_datetime(app_api);
- //app_api->dispWriteString(0,0,0, &data[0], FONT_6x8, 0, 1);
+ //app_api->display_write_string(0,0,0, &data[0], FONT_6x8, 0, 1);
return 0;
}