From 05b9317b7573ef82b050b43cf65d488b1023ad1d Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 11 Sep 2019 17:04:39 +0200 Subject: [PATCH] Allow user control over clock text size Allow user control over clock text size (#6395) --- sonoff/xdsp_02_ssd1306.ino | 3 ++- sonoff/xdsp_07_sh1106.ino | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sonoff/xdsp_02_ssd1306.ino b/sonoff/xdsp_02_ssd1306.ino index 704226a25..078ef1f09 100755 --- a/sonoff/xdsp_02_ssd1306.ino +++ b/sonoff/xdsp_02_ssd1306.ino @@ -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); diff --git a/sonoff/xdsp_07_sh1106.ino b/sonoff/xdsp_07_sh1106.ino index d694129ec..6c535b02a 100644 --- a/sonoff/xdsp_07_sh1106.ino +++ b/sonoff/xdsp_07_sh1106.ino @@ -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);