dice art.txt (5.8 KB)
line 157b has a bug???
AttributeError: ‘Canvas’ object has no attribute ‘text’
Yes, you probably meant draw_text()
.
So you could change that line to:
display.draw_text("Error!", 35, 70, WHITE)
That said, there are a few more errors in the code… Be sure to refer to the library docs, for example for those display/bitmap functions bitmap – Pixel manipulations — Firia Labs 1.4 documentation