Added font support to enlarge the timer display

This commit is contained in:
David Thurstenson 2023-08-10 07:58:39 -05:00
parent adc3e61069
commit 30eb0372e0
3 changed files with 82270 additions and 1 deletions

BIN
LiberationMono-Bold-42.pcf Normal file

Binary file not shown.

View File

@ -9,6 +9,7 @@ import displayio
import terminalio
import adafruit_displayio_ssd1306
from adafruit_display_text import label
from adafruit_bitmap_font import bitmap_font
# Release displays so thonny doesn't block the i2c setup
displayio.release_displays()
@ -49,7 +50,7 @@ except:
print("Unable to initialize display.")
text = "HELLO WORLD"
font = terminalio.FONT
font = bitmap_font.load_font("/LiberationMono-Bold-42.pcf")
color = 0xFFFFFF
text_area = label.Label(font, text=text, color=color)

File diff suppressed because it is too large Load Diff