Here is a demo of the text improvements for Explorer. Great work, Pimoroni crew!
# Demo of text upgrades for Explorer
# Tony Goodhew 24th June, 2022
import picographics
import utime
from picographics import PicoGraphics, DISPLAY_PICO_EXPLORER
display = PicoGraphics(display=DISPLAY_PICO_EXPLORER)
display.set_backlight(1.0)
white = display.create_pen(200, 200, 255)
black = display.create_pen(0, 0, 0)
red = display.create_pen(255, 0, 0)
blue = display.create_pen(0 ,0, 255)
yellow = display.create_pen(255, 255 ,0)
green = display.create_pen(0, 255,0)
display.set_pen(white)
display.text("Pico", 75, 20, 240, 4)
display.text("Explorer", 30, 45, 240, 4)
display.text("Display", 40, 70, 240, 4)
display.set_pen(yellow)
display.text("Default", 35, 100, 240, 4)
display.text("Font", 75, 125, 240, 4)
display.update()
utime.sleep(1)
display.set_pen(black)
display.clear()
display.set_pen(white)
display.set_font("bitmap8")
display.text("Hello World", 0, 0, scale=2)
display.set_font("bitmap6")
display.text("Hello World", 0, 15, scale=2)
display.set_font("bitmap14_outline")
display.text("Pimoroni", 0, 25, scale=2)
display.set_font("sans")
display.text("Pimoroni", 0, 65, scale=1)
display.set_font("gothic")
display.text("Pimoroni", 0, 90, scale=1)
display.set_font("cursive")
display.text("Pimoroni", 0, 115, scale=1)
display.set_pen(green)
display.set_font("serif")
display.text("Pimoroni", 0, 140, scale=1)
display.set_pen(red)
display.set_font("serif_italic")
display.text("Pimoroni", 0, 165, scale=1)
width = display.measure_text("Centred", scale=1)
x = int((240 - width)/2)
display.set_pen(blue)
display.text("Centred",x, 195, scale=1)
display.set_font("serif")
display.set_pen(yellow)
display.text("Angle 270 deg", 220, 230, 200, scale=0.9, angle = 270)
display.update()
I’m very glad lower case text is now easily available.
The suggested (255,255,255) for white is a bit too yellow so (200,200,255) look better on my Explorer.
My Tufty_2040 arrives today - should be fun.