10-06-2020, 09:31 AM
(10-05-2020, 11:12 PM)Alaini93 Wrote: Hi,
How to make the clock larger on a sh1106 128x64?
Thanks
Assuming you are using the default settings then near the top in pages_ssd1306.py the font for the large clock is
Code:
TRUETYPE_FONTS = {
'DejaVuSans28': { 'file':'DejaVuSans.ttf', 'size':28 }
}
You could try adjusting the font size or call a completely different font there.
Some formatting of the large clock is controlled by the 'ttime' widget in the same file so if you change the font details make sure you call them correctly in the 'ttime' widget too.
Code:
'ttime': { 'type':'ttext', 'format':'{0}', 'variables':['utc|timezone+Europe/London|strftime+%-H:%M'], 'font':'DejaVuSans28', 'just':'right', 'varwidth':True },