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
Using /firmware/RP2/firmware.uf2
implementing code below found display text results in a KeyError regarding Width, regardless of font used (tried pacifico, chango, and inconsolata included in package). function write() works as expected with no errors.
This was also repeated in the hello.py example
`from machine import Pin, SPI, RTC
import st7789
import pacifico40 as font
Using /firmware/RP2/firmware.uf2
implementing code below found display text results in a KeyError regarding Width, regardless of font used (tried pacifico, chango, and inconsolata included in package). function write() works as expected with no errors.
This was also repeated in the hello.py example
`from machine import Pin, SPI, RTC
import st7789
import pacifico40 as font
spi_clock=Pin(10)
spi_MOSI=Pin(11)
spi_MISO=Pin(12)
tft_cs = Pin(13) #screen select
sd_cs = Pin(14) #sdcard select
tft_dc = Pin(15)
reset_pin=Pin(16)
spi = machine.SPI(1, baudrate=40000000, polarity=1, sck=spi_clock, mosi=spi_MOSI)
display = st7789.ST7789(spi, 240,240, cs=Pin(13, Pin.OUT), dc=tft_dc, reset=reset_pin,rotation=1)
display.init()
test_string = "T"
display.text(font, test_string, 50, 50)
print("Hello World")
`
The text was updated successfully, but these errors were encountered: