kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Merge pull request #254 from nathanmayall/main
fix custom badge file not loading correctlypull/256/head
commit
665ed08123
|
@ -34,7 +34,7 @@ E ink
|
|||
BADGE_IMAGE = bytearray(int(IMAGE_WIDTH * HEIGHT / 8))
|
||||
|
||||
try:
|
||||
open("badge-image.bin", "rb").read_into(BADGE_IMAGE)
|
||||
open("badge-image.bin", "rb").readinto(BADGE_IMAGE)
|
||||
except OSError:
|
||||
try:
|
||||
import badge_image
|
||||
|
|
Ładowanie…
Reference in New Issue