You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using a font which is taller than terminalio.FONT the rows overlap because an assumed height is hard-coded.
A variant of the simpletext with a bigger font
"""Display the microcontroller CPU temperature in C and F on a display."""importmicrocontrollerfromadafruit_simple_text_displayimportSimpleTextDisplayfromadafruit_bitmap_fontimportbitmap_fontFONT=bitmap_font.load_font("/fonts/LibreBodoniv2002-Bold-27.bdf") # A bigger fonttemperature_data=SimpleTextDisplay(title="Temperature Data!", title_scale=2, font=FONT)
whileTrue:
temperature_data[0].text="Temperature: {:.2f} degrees C".format(
microcontroller.cpu.temperature
)
temperature_data[1].text="Temperature: {:.2f} degrees F".format(
(microcontroller.cpu.temperature* (9/5) +32)
)
temperature_data.show()
The text was updated successfully, but these errors were encountered:
Deprecate 'title_length', ignore it for now. It is no longer needed with the update to Adafruit_CircuitPython_Display_Text removing 'max_glyphs'.
Refactor the scaling so that the 'text_scale' is not a multiple of the 'title_scale'.
Correctly add multiple rows with the color-cycling effect. Previously all new rows had the same color.
If using a font which is taller than
terminalio.FONT
the rows overlap because an assumed height is hard-coded.A variant of the simpletext with a bigger font
The text was updated successfully, but these errors were encountered: