add functions to display in hours, minutes and seconds place

This commit is contained in:
joeycastillo
2024-07-17 01:19:49 -04:00
parent 7f0dac8ae4
commit 2ff11b5d3e
2 changed files with 39 additions and 0 deletions

View File

@ -171,6 +171,27 @@ void watch_display_main_line(char *string) {
}
}
void watch_display_hours(char *string) {
watch_display_character(string[0], 4);
if (string[1]) {
watch_display_character(string[1], 5);
}
}
void watch_display_minutes(char *string) {
watch_display_character(string[0], 6);
if (string[1]) {
watch_display_character(string[1], 7);
}
}
void watch_display_seconds(char *string) {
watch_display_character(string[0], 8);
if (string[1]) {
watch_display_character(string[1], 9);
}
}
void watch_set_colon(void) {
#ifdef USE_CUSTOM_LCD
watch_set_pixel(0, 0);

View File

@ -113,6 +113,24 @@ void watch_display_top_right(char *string);
*/
void watch_display_main_line(char *string);
/**
* @brief Displays a string in the hours portion of the main line.
* @param string A null-terminated string with two characters to display.
*/
void watch_display_hours(char *string);
/**
* @brief Displays a string in the minutes portion of the main line.
* @param string A null-terminated string with two characters to display.
*/
void watch_display_minutes(char *string);
/**
* @brief Displays a string in the seconds portion of the main line.
* @param string A null-terminated string with two characters to display.
*/
void watch_display_seconds(char *string);
/** @brief Turns the colon segment on.
*/
void watch_set_colon(void);