Added font support to enlarge the timer display
This commit is contained in:
parent
adc3e61069
commit
30eb0372e0
Binary file not shown.
|
@ -9,6 +9,7 @@ import displayio
|
||||||
import terminalio
|
import terminalio
|
||||||
import adafruit_displayio_ssd1306
|
import adafruit_displayio_ssd1306
|
||||||
from adafruit_display_text import label
|
from adafruit_display_text import label
|
||||||
|
from adafruit_bitmap_font import bitmap_font
|
||||||
|
|
||||||
# Release displays so thonny doesn't block the i2c setup
|
# Release displays so thonny doesn't block the i2c setup
|
||||||
displayio.release_displays()
|
displayio.release_displays()
|
||||||
|
@ -49,7 +50,7 @@ except:
|
||||||
print("Unable to initialize display.")
|
print("Unable to initialize display.")
|
||||||
|
|
||||||
text = "HELLO WORLD"
|
text = "HELLO WORLD"
|
||||||
font = terminalio.FONT
|
font = bitmap_font.load_font("/LiberationMono-Bold-42.pcf")
|
||||||
color = 0xFFFFFF
|
color = 0xFFFFFF
|
||||||
|
|
||||||
text_area = label.Label(font, text=text, color=color)
|
text_area = label.Label(font, text=text, color=color)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue