kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Move set_font down to title line
(it was sometimes drawing the title with the wrong font)pull/460/head
rodzic
33b2c3908d
commit
ad7121dbdc
|
@ -40,7 +40,6 @@ network_manager = NetworkManager(WIFI_CONFIG.COUNTRY, status_handler=status_hand
|
||||||
gc.collect()
|
gc.collect()
|
||||||
graphics = PicoGraphics(DISPLAY_INKY_FRAME)
|
graphics = PicoGraphics(DISPLAY_INKY_FRAME)
|
||||||
WIDTH, HEIGHT = graphics.get_bounds()
|
WIDTH, HEIGHT = graphics.get_bounds()
|
||||||
graphics.set_font("cursive")
|
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
||||||
|
|
||||||
|
@ -123,6 +122,7 @@ while True:
|
||||||
|
|
||||||
# Main text
|
# Main text
|
||||||
graphics.set_pen(4)
|
graphics.set_pen(4)
|
||||||
|
graphics.set_font("cursive")
|
||||||
graphics.text("Activity Idea", 55, 30, WIDTH - 20, 2)
|
graphics.text("Activity Idea", 55, 30, WIDTH - 20, 2)
|
||||||
graphics.set_pen(0)
|
graphics.set_pen(0)
|
||||||
graphics.set_font("bitmap8")
|
graphics.set_font("bitmap8")
|
||||||
|
|
Ładowanie…
Reference in New Issue