kopia lustrzana https://github.com/pimoroni/pimoroni-pico
fix custom badge file not loading correctly
rodzic
273ca5c56d
commit
ee12d846a1
|
@ -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