mirror of
https://github.com/joeycastillo/second-movement.git
synced 2026-02-11 01:05:23 +00:00
add functions to display in hours, minutes and seconds place
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user