Hi
I’m trying to use the pimeroni interstate 75W and I’m wondering how we can use it to show non-English characters (Greek, Russian) on a 32x64 LED Matrix.
Hi
I’m trying to use the pimeroni interstate 75W and I’m wondering how we can use it to show non-English characters (Greek, Russian) on a 32x64 LED Matrix.
How far have you got? What programming language are you using? Have you been able to light up arbitrary LEDs using the Getting Started guide?
This was written for Galactic Unicorm and should be easy to convert. It has an extended character set.
# Pimoroni Galactic Unicorn Lower case character set and AHT20 sensing
# Tony Goodhew - 13th Nov 2022
# Needs ahtx0.py library
from galactic import GalacticUnicorn
from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN
import time
from machine import Pin, I2C
# create a PicoGraphics framebuffer to draw into
graphics = PicoGraphics(display=DISPLAY_GALACTIC_UNICORN)
# create our GalacticUnicorn object
gu = GalacticUnicorn()
BLACK = graphics.create_pen(0, 0, 0)
YELLOW = graphics.create_pen(255, 255, 0)
# ===========Start of FONTS Section=========================
# Standard ASCII 5x8 font
# https://gist.github.com/tdicola/229b3eeddc12d58fb0bc724a9062aa05
FONT_HEIGHT = 8
FONT_WIDTH = 5
FONT = bytes([
0x00, 0x00, 0x00, 0x00, 0x00, # <space>
0x3E, 0x5B, 0x4F, 0x5B, 0x3E,
0x3E, 0x6B, 0x4F, 0x6B, 0x3E,
0x1C, 0x3E, 0x7C, 0x3E, 0x1C,
0x18, 0x3C, 0x7E, 0x3C, 0x18,
0x1C, 0x57, 0x7D, 0x57, 0x1C,
0x1C, 0x5E, 0x7F, 0x5E, 0x1C,
0x00, 0x18, 0x3C, 0x18, 0x00,
0xFF, 0xE7, 0xC3, 0xE7, 0xFF,
0x00, 0x18, 0x24, 0x18, 0x00,
0xFF, 0xE7, 0xDB, 0xE7, 0xFF,
0x30, 0x48, 0x3A, 0x06, 0x0E,
0x26, 0x29, 0x79, 0x29, 0x26,
0x40, 0x7F, 0x05, 0x05, 0x07,
0x40, 0x7F, 0x05, 0x25, 0x3F,
0x5A, 0x3C, 0xE7, 0x3C, 0x5A,
0x7F, 0x3E, 0x1C, 0x1C, 0x08,
0x08, 0x1C, 0x1C, 0x3E, 0x7F,
0x14, 0x22, 0x7F, 0x22, 0x14,
0x5F, 0x5F, 0x00, 0x5F, 0x5F,
0x06, 0x09, 0x7F, 0x01, 0x7F,
0x00, 0x66, 0x89, 0x95, 0x6A,
0x60, 0x60, 0x60, 0x60, 0x60,
0x94, 0xA2, 0xFF, 0xA2, 0x94,
0x08, 0x04, 0x7E, 0x04, 0x08, # UP
0x10, 0x20, 0x7E, 0x20, 0x10, # Down
0x08, 0x08, 0x2A, 0x1C, 0x08, # Right
0x08, 0x1C, 0x2A, 0x08, 0x08, # Left
0x1E, 0x10, 0x10, 0x10, 0x10,
0x0C, 0x1E, 0x0C, 0x1E, 0x0C,
0x30, 0x38, 0x3E, 0x38, 0x30,
0x06, 0x0E, 0x3E, 0x0E, 0x06,
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x5F, 0x00, 0x00,
0x00, 0x07, 0x00, 0x07, 0x00,
0x14, 0x7F, 0x14, 0x7F, 0x14,
0x24, 0x2A, 0x7F, 0x2A, 0x12,
0x23, 0x13, 0x08, 0x64, 0x62,
0x36, 0x49, 0x56, 0x20, 0x50,
0x00, 0x08, 0x07, 0x03, 0x00,
0x00, 0x1C, 0x22, 0x41, 0x00,
0x00, 0x41, 0x22, 0x1C, 0x00,
0x2A, 0x1C, 0x7F, 0x1C, 0x2A,
0x08, 0x08, 0x3E, 0x08, 0x08,
0x00, 0x80, 0x70, 0x30, 0x00,
0x08, 0x08, 0x08, 0x08, 0x08,
0x00, 0x00, 0x60, 0x60, 0x00,
0x20, 0x10, 0x08, 0x04, 0x02,
0x3E, 0x51, 0x49, 0x45, 0x3E,
0x00, 0x42, 0x7F, 0x40, 0x00,
0x72, 0x49, 0x49, 0x49, 0x46,
0x21, 0x41, 0x49, 0x4D, 0x33,
0x18, 0x14, 0x12, 0x7F, 0x10,
0x27, 0x45, 0x45, 0x45, 0x39,
0x3C, 0x4A, 0x49, 0x49, 0x31,
0x41, 0x21, 0x11, 0x09, 0x07,
0x36, 0x49, 0x49, 0x49, 0x36,
0x46, 0x49, 0x49, 0x29, 0x1E,
0x00, 0x00, 0x14, 0x00, 0x00,
0x00, 0x40, 0x34, 0x00, 0x00,
0x00, 0x08, 0x14, 0x22, 0x41,
0x14, 0x14, 0x14, 0x14, 0x14,
0x00, 0x41, 0x22, 0x14, 0x08,
0x02, 0x01, 0x59, 0x09, 0x06,
0x3E, 0x41, 0x5D, 0x59, 0x4E,
0x7C, 0x12, 0x11, 0x12, 0x7C, # A
0x7F, 0x49, 0x49, 0x49, 0x36,
0x3E, 0x41, 0x41, 0x41, 0x22,
0x7F, 0x41, 0x41, 0x41, 0x3E,
0x7F, 0x49, 0x49, 0x49, 0x41,
0x7F, 0x09, 0x09, 0x09, 0x01,
0x3E, 0x41, 0x41, 0x51, 0x73,
0x7F, 0x08, 0x08, 0x08, 0x7F,
0x00, 0x41, 0x7F, 0x41, 0x00,
0x20, 0x40, 0x41, 0x3F, 0x01,
0x7F, 0x08, 0x14, 0x22, 0x41,
0x7F, 0x40, 0x40, 0x40, 0x40,
0x7F, 0x02, 0x1C, 0x02, 0x7F,
0x7F, 0x04, 0x08, 0x10, 0x7F,
0x3E, 0x41, 0x41, 0x41, 0x3E,
0x7F, 0x09, 0x09, 0x09, 0x06,
0x3E, 0x41, 0x51, 0x21, 0x5E,
0x7F, 0x09, 0x19, 0x29, 0x46,
0x26, 0x49, 0x49, 0x49, 0x32,
0x03, 0x01, 0x7F, 0x01, 0x03,
0x3F, 0x40, 0x40, 0x40, 0x3F,
0x1F, 0x20, 0x40, 0x20, 0x1F,
0x3F, 0x40, 0x38, 0x40, 0x3F,
0x63, 0x14, 0x08, 0x14, 0x63,
0x03, 0x04, 0x78, 0x04, 0x03,
0x61, 0x59, 0x49, 0x4D, 0x43,
0x00, 0x7F, 0x41, 0x41, 0x41,
0x02, 0x04, 0x08, 0x10, 0x20,
0x00, 0x41, 0x41, 0x41, 0x7F,
0x04, 0x02, 0x01, 0x02, 0x04,
0x40, 0x40, 0x40, 0x40, 0x40,
0x00, 0x03, 0x07, 0x08, 0x00,
0x20, 0x54, 0x54, 0x78, 0x40,
0x7F, 0x28, 0x44, 0x44, 0x38,
0x38, 0x44, 0x44, 0x44, 0x28,
0x38, 0x44, 0x44, 0x28, 0x7F,
0x38, 0x54, 0x54, 0x54, 0x18,
0x00, 0x08, 0x7E, 0x09, 0x02,
0x18, 0xA4, 0xA4, 0x9C, 0x78,
0x7F, 0x08, 0x04, 0x04, 0x78,
0x00, 0x44, 0x7D, 0x40, 0x00,
0x20, 0x40, 0x40, 0x3D, 0x00,
0x7F, 0x10, 0x28, 0x44, 0x00,
0x00, 0x41, 0x7F, 0x40, 0x00,
0x7C, 0x04, 0x78, 0x04, 0x78,
0x7C, 0x08, 0x04, 0x04, 0x78,
0x38, 0x44, 0x44, 0x44, 0x38,
0xFC, 0x18, 0x24, 0x24, 0x18,
0x18, 0x24, 0x24, 0x18, 0xFC,
0x7C, 0x08, 0x04, 0x04, 0x08,
0x48, 0x54, 0x54, 0x54, 0x24,
0x04, 0x04, 0x3F, 0x44, 0x24,
0x3C, 0x40, 0x40, 0x20, 0x7C,
0x1C, 0x20, 0x40, 0x20, 0x1C,
0x3C, 0x40, 0x30, 0x40, 0x3C,
0x44, 0x28, 0x10, 0x28, 0x44,
0x4C, 0x90, 0x90, 0x90, 0x7C,
0x44, 0x64, 0x54, 0x4C, 0x44,
0x00, 0x08, 0x36, 0x41, 0x00,
0x00, 0x00, 0x77, 0x00, 0x00,
0x00, 0x41, 0x36, 0x08, 0x00,
0x02, 0x01, 0x02, 0x04, 0x02,
0x3C, 0x26, 0x23, 0x26, 0x3C,
0x1E, 0xA1, 0xA1, 0x61, 0x12, # Extension starts here
0x3A, 0x40, 0x40, 0x20, 0x7A,
0x38, 0x54, 0x54, 0x55, 0x59,
0x21, 0x55, 0x55, 0x79, 0x41,
0x22, 0x54, 0x54, 0x78, 0x42, # a-umlaut
0x21, 0x55, 0x54, 0x78, 0x40,
0x20, 0x54, 0x55, 0x79, 0x40,
0x0C, 0x1E, 0x52, 0x72, 0x12,
0x39, 0x55, 0x55, 0x55, 0x59,
0x39, 0x54, 0x54, 0x54, 0x59,
0x39, 0x55, 0x54, 0x54, 0x58,
0x00, 0x00, 0x45, 0x7C, 0x41,
0x00, 0x02, 0x45, 0x7D, 0x42,
0x00, 0x01, 0x45, 0x7C, 0x40,
0x7D, 0x12, 0x11, 0x12, 0x7D, # A-umlaut
0xF0, 0x28, 0x25, 0x28, 0xF0,
0x7C, 0x54, 0x55, 0x45, 0x00,
0x20, 0x54, 0x54, 0x7C, 0x54,
0x7C, 0x0A, 0x09, 0x7F, 0x49,
0x32, 0x49, 0x49, 0x49, 0x32,
0x3A, 0x44, 0x44, 0x44, 0x3A, # o-umlaut
0x32, 0x4A, 0x48, 0x48, 0x30,
0x3A, 0x41, 0x41, 0x21, 0x7A,
0x3A, 0x42, 0x40, 0x20, 0x78,
0x00, 0x9D, 0xA0, 0xA0, 0x7D,
0x3D, 0x42, 0x42, 0x42, 0x3D, # O-umlaut
0x3D, 0x40, 0x40, 0x40, 0x3D,
0x3C, 0x24, 0xFF, 0x24, 0x24,
0x48, 0x7E, 0x49, 0x43, 0x66,
0x2B, 0x2F, 0xFC, 0x2F, 0x2B,
0xFF, 0x09, 0x29, 0xF6, 0x20,
0xC0, 0x88, 0x7E, 0x09, 0x03,
0x20, 0x54, 0x54, 0x79, 0x41,
0x00, 0x00, 0x44, 0x7D, 0x41,
0x30, 0x48, 0x48, 0x4A, 0x32,
0x38, 0x40, 0x40, 0x22, 0x7A,
0x00, 0x7A, 0x0A, 0x0A, 0x72,
0x7D, 0x0D, 0x19, 0x31, 0x7D,
0x26, 0x29, 0x29, 0x2F, 0x28,
0x26, 0x29, 0x29, 0x29, 0x26,
0x30, 0x48, 0x4D, 0x40, 0x20,
0x38, 0x08, 0x08, 0x08, 0x08,
0x08, 0x08, 0x08, 0x08, 0x38,
0x2F, 0x10, 0xC8, 0xAC, 0xBA,
0x2F, 0x10, 0x28, 0x34, 0xFA,
0x00, 0x00, 0x7B, 0x00, 0x00,
0x08, 0x14, 0x2A, 0x14, 0x22,
0x22, 0x14, 0x2A, 0x14, 0x08,
0x55, 0x00, 0x55, 0x00, 0x55, # 176 (25% block) missing in old code
0xAA, 0x55, 0xAA, 0x55, 0xAA, # 50% block
0xFF, 0x55, 0xFF, 0x55, 0xFF, # 75% block
0x00, 0x00, 0x00, 0xFF, 0x00,
0x10, 0x10, 0x10, 0xFF, 0x00,
0x14, 0x14, 0x14, 0xFF, 0x00,
0x10, 0x10, 0xFF, 0x00, 0xFF,
0x10, 0x10, 0xF0, 0x10, 0xF0,
0x14, 0x14, 0x14, 0xFC, 0x00,
0x14, 0x14, 0xF7, 0x00, 0xFF,
0x00, 0x00, 0xFF, 0x00, 0xFF,
0x14, 0x14, 0xF4, 0x04, 0xFC,
0x14, 0x14, 0x17, 0x10, 0x1F,
0x10, 0x10, 0x1F, 0x10, 0x1F,
0x14, 0x14, 0x14, 0x1F, 0x00,
0x10, 0x10, 0x10, 0xF0, 0x00,
0x00, 0x00, 0x00, 0x1F, 0x10,
0x10, 0x10, 0x10, 0x1F, 0x10,
0x10, 0x10, 0x10, 0xF0, 0x10,
0x00, 0x00, 0x00, 0xFF, 0x10,
0x10, 0x10, 0x10, 0x10, 0x10,
0x10, 0x10, 0x10, 0xFF, 0x10,
0x00, 0x00, 0x00, 0xFF, 0x14,
0x00, 0x00, 0xFF, 0x00, 0xFF,
0x00, 0x00, 0x1F, 0x10, 0x17,
0x00, 0x00, 0xFC, 0x04, 0xF4,
0x14, 0x14, 0x17, 0x10, 0x17,
0x14, 0x14, 0xF4, 0x04, 0xF4,
0x00, 0x00, 0xFF, 0x00, 0xF7,
0x14, 0x14, 0x14, 0x14, 0x14,
0x14, 0x14, 0xF7, 0x00, 0xF7,
0x14, 0x14, 0x14, 0x17, 0x14,
0x10, 0x10, 0x1F, 0x10, 0x1F,
0x14, 0x14, 0x14, 0xF4, 0x14,
0x10, 0x10, 0xF0, 0x10, 0xF0,
0x00, 0x00, 0x1F, 0x10, 0x1F,
0x00, 0x00, 0x00, 0x1F, 0x14,
0x00, 0x00, 0x00, 0xFC, 0x14,
0x00, 0x00, 0xF0, 0x10, 0xF0,
0x10, 0x10, 0xFF, 0x10, 0xFF,
0x14, 0x14, 0x14, 0xFF, 0x14,
0x10, 0x10, 0x10, 0x1F, 0x00,
0x00, 0x00, 0x00, 0xF0, 0x10,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
0xFF, 0xFF, 0xFF, 0x00, 0x00,
0x00, 0x00, 0x00, 0xFF, 0xFF,
0x0F, 0x0F, 0x0F, 0x0F, 0x0F,
0x38, 0x44, 0x44, 0x38, 0x44, # alpha - Greek characters start here at 224
0xFC, 0x4A, 0x4A, 0x4A, 0x34, # sharp-s or beta
0x7E, 0x02, 0x02, 0x06, 0x06,
0x02, 0x7E, 0x02, 0x7E, 0x02, # pi
0x63, 0x55, 0x49, 0x41, 0x63,
0x38, 0x44, 0x44, 0x3C, 0x04,
0x40, 0x7E, 0x20, 0x1E, 0x20, # mu
0x06, 0x02, 0x7E, 0x02, 0x02,
0x99, 0xA5, 0xE7, 0xA5, 0x99,
0x1C, 0x2A, 0x49, 0x2A, 0x1C,
0x4C, 0x72, 0x01, 0x72, 0x4C, # omega
0x30, 0x4A, 0x4D, 0x4D, 0x30,
0x30, 0x48, 0x78, 0x48, 0x30,
0xBC, 0x62, 0x5A, 0x46, 0x3D,
0x3E, 0x49, 0x49, 0x49, 0x00,
0x7E, 0x01, 0x01, 0x01, 0x7E, # End of Greek chars
0x2A, 0x2A, 0x2A, 0x2A, 0x2A, # equivalent to 240
0x44, 0x44, 0x5F, 0x44, 0x44, # + or -
0x40, 0x51, 0x4A, 0x44, 0x40, # >=
0x40, 0x44, 0x4A, 0x51, 0x40, # <=
0x00, 0x00, 0xFF, 0x01, 0x03, # top of integral
0xE0, 0x80, 0xFF, 0x00, 0x00, # bottom of integral
0x08, 0x08, 0x6B, 0x6B, 0x08,
0x36, 0x12, 0x36, 0x24, 0x36, # approximately
0x06, 0x0F, 0x09, 0x0F, 0x06, # Degree
0x00, 0x00, 0x18, 0x18, 0x00,
0x00, 0x00, 0x10, 0x10, 0x00,
0x30, 0x40, 0xFF, 0x01, 0x01, # sq root
0x00, 0x1F, 0x01, 0x01, 0x1E, # n superscript
0x00, 0x19, 0x1D, 0x17, 0x12, # squared (^2)
0x00, 0x3C, 0x3C, 0x3C, 0x3C,
0x00, 0x00, 0x00, 0x00, 0x00 # 255 also a <space>
])
def character(asc,xt,yt,sz,r,g,b): # Single character sz is size: 1 or 2
colour = graphics.create_pen(r,g,b)
graphics.set_pen(colour)
code = asc * 5 # 5 bytes per character
for ii in range(5):
line = FONT[code + ii]
for yy in range(8):
if (line >> yy) & 0x1:
graphics.pixel(ii*sz+xt,yy*sz+yt)
if sz > 1:
graphics.pixel(ii*sz+xt+1,yy*sz+yt)
graphics.pixel(ii*sz+xt,yy*sz+yt+1)
graphics.pixel(ii*sz+xt+1,yy*sz+yt+1)
if sz == 3:
graphics.pixel(ii*sz+xt, yy*sz+yt+2)
graphics.pixel(ii*sz+xt+1,yy*sz+yt+2)
graphics.pixel(ii*sz+xt+2,yy*sz+yt+2)
graphics.pixel(ii*sz+xt+2,yy*sz+yt)
graphics.pixel(ii*sz+xt+2,yy*sz+yt+1)
def prnt_st(asci,xx,yy,sz,r,g,b): # Text string
if sz == 1: move = 6
if sz == 2: move = 11
if sz == 3: move = 17
for letter in(asci):
asci = ord(letter)
character(asci,xx,yy,sz,r,g,b)
xx = xx + move
def cntr_st(s,y,sz,r,g,b): # Centres text on line y
if sz == 1: w = 6
if sz == 2: w = 11
if sz == 3: w = 17
gap = int((width - len(s) * w)/2)
prnt_st(s,gap,y,sz,r,g,b)
def scroll(msg, r,g,b):
p = 53
length = len(msg) * 6
steps = length + 53
for c in range(steps):
graphics.set_pen(BLACK)
graphics.clear()
colour = graphics.create_pen(r,g,b)
graphics.set_pen(colour)
prnt_st(msg, p, 2, 1,r ,g ,b)
gu.update(graphics)
p = p - 1
time.sleep(0.1)
# =========== End of font support routines ===========
prnt_st("TonyGo2",5,1,1,255,0,0)
gu.update(graphics)
time.sleep(2)
scroll("Lower case scrolling",0,0,255)
gu.update(graphics)
# AHT20 fitted to Stemma/QT socket
import ahtx0
i2c = I2C(id=0,scl=Pin(5), sda=Pin(4))
# Create the sensor object using I2C
sensor = ahtx0.AHT20(i2c)
# Main loop - get sensor readings and didplay
for r in range(3):
t = int(sensor.temperature * 10 + 0.5) /10
h = sensor.relative_humidity
msg = str(t) + chr(248) + "C & " + str(int(h + 0.5)) +" %" # degrees
scroll(msg, 255,100,20)
prnt_st("Done",15,1,1,0,255,0)
gu.update(graphics)
time.sleep(1.5)
graphics.set_pen(BLACK)
graphics.clear()
gu.update(graphics)
Hope it helps.
Yes, I have gone through the guide and can light up single leds.
Lovely! Good luck with it! 🏆
So far I have this code that works OK. How can I change the font to another font ?
Also, is Interstate75 different that picographics ?
import network
import urequests as requests
import ujson as json
import time
import ntptime
import utime
from interstate75 import Interstate75
import secrets # Load Wi-Fi and ThingSpeak credentials from secrets.py
# Set timezone offset in seconds (for example, EST is -5 hours or -18000 seconds)
TIMEZONE_OFFSET = 10800
i75 = Interstate75(display=Interstate75.DISPLAY_INTERSTATE75_64X32)
graphics = i75.display
MAGENTA = graphics.create_pen(255, 0, 255)
RED = graphics.create_pen(255, 0, 0)
BLUE = graphics.create_pen(0, 0, 255)
GREEN = graphics.create_pen(0, 255, 0)
BLACK = graphics.create_pen(0, 0, 0)
WHITE = graphics.create_pen(255, 255, 255)
graphics.set_pen(BLACK)
graphics.clear()
graphics.set_pen(GREEN)
graphics.text("WiFi Clock", 8, 12, scale=1)
i75.update(graphics)
# Connect to Wi-Fi -------------------------------------------
print("Connecting to Wi-Fi...")
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect(secrets.WIFI_SSID, secrets.WIFI_PASSWORD)
while not sta_if.isconnected():
pass
print("Connected to Wi-Fi:", sta_if.ifconfig()[0])
#-------------------------------------------------------------
# Request data from ThingSpeak with fields 1, 3, and 4
url = "https://api.thingspeak.com/channels/{}/fields/1,3,4.json?api_key={}&results=1".format(secrets.THINGSPEAK_CHANNEL_ID, secrets.THINGSPEAK_READ_API_KEY)
print("Requesting data from ThingSpeak:", url)
response = requests.get(url)
if response.status_code == 200:
data = json.loads(response.text)
print("")
print("Data received from ThingSpeak:")
for entry in data['feeds']:
field1_value = entry['field1'] #convert to valiables
field3_value = entry['field3'] #convert to valiables
field4_value = entry['field4'] #convert to valiables
field1_text = str(field1_value) # convert to text to show on led matrix
field3_text = str(field3_value) # convert to text to show on led matrix
field4_text = str(field3_value) # convert to text to show on led matrix
print("Outside Temperature: ", field1_value)
print("Humidity: ", field3_value)
print("Battery Voltage: ", field4_value)
else:
print("Error requesting data from ThingSpeak. HTTP status code:", response.status_code)
# Disconnect from Wi-Fi
print("Disconnecting from Wi-Fi.")
sta_if.disconnect()
# show thingspeak values on led matrix
graphics.set_pen(BLACK)
graphics.clear()
graphics.set_pen(RED)
graphics.text(field1_text, 8, 12, scale=1)
i75.update(graphics)
timestamp = 0
# get time from server
while True:
# Get current time from NTP server
try:
ntptime.settime()
except:
print('Error updating time from NTP server')
# Calculate timezone offset and add to timestamp
timestamp = utime.mktime(utime.localtime()) + TIMEZONE_OFFSET
tm = utime.localtime(timestamp)
# Format date and time
months = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')
date_str = "{:02d} {:s} {:d}".format(tm[2], months[tm[1]-1], tm[0])
time_str = "{:02d}:{:02d}:{:02d}".format(tm[3], tm[4], tm[5])
# Print formatted date and time
#print(date_str, time_str)
graphics.set_pen(BLACK)
graphics.clear()
graphics.set_pen(RED)
graphics.text(time_str, 1, 1, scale=2)
graphics.set_pen(GREEN)
graphics.text(date_str, 6, 20, scale=1)
i75.update(graphics)
# Wait for one second before updating again
utime.sleep(1)
The Pimoroni system of fonts is built in and not easy to change/add to. If you want a different font/character set you need to define the font table and draw the individual pixels for each character your self. Creating the individual character patterns is not difficult but takes time. The procedures I have provided above put your pixels patterns onto the LEDs. The font table provided has several Greek and accented characters included.
You can, but only with the fonts built into PicoGraphics. As @Tonygo2 says, if you want to render fonts/characters outside of those, you’ll have to draw it yourself with primitives.
(the Pico is a fairly limited platform, and the memory requirements for supporting, say, ttf
fonts would be substantial - embedded systems are always a balance of feature and size!)