Allow user control over clock text size

Allow user control over clock text size (#6395)
This commit is contained in:
Theo Arends 2019-09-11 17:04:39 +02:00
parent 56b0f6efdc
commit 05b9317b75
2 changed files with 4 additions and 2 deletions

View File

@ -137,7 +137,8 @@ void Ssd1306Time(void)
char line[12];
renderer->clearDisplay();
renderer->setTextSize(2);
renderer->setTextSize(Settings.display_size);
renderer->setTextFont(Settings.display_font);
renderer->setCursor(0, 0);
snprintf_P(line, sizeof(line), PSTR(" %02d" D_HOUR_MINUTE_SEPARATOR "%02d" D_MINUTE_SECOND_SEPARATOR "%02d"), RtcTime.hour, RtcTime.minute, RtcTime.second); // [ 12:34:56 ]
renderer->println(line);

View File

@ -131,7 +131,8 @@ void SH1106Time(void)
char line[12];
renderer->clearDisplay();
renderer->setTextSize(2);
renderer->setTextSize(Settings.display_size);
renderer->setTextFont(Settings.display_font);
renderer->setCursor(0, 0);
snprintf_P(line, sizeof(line), PSTR(" %02d" D_HOUR_MINUTE_SEPARATOR "%02d" D_MINUTE_SECOND_SEPARATOR "%02d"), RtcTime.hour, RtcTime.minute, RtcTime.second); // [ 12:34:56 ]
renderer->println(line);