Skip to content

Commit 47289da

Browse files
committed
Make it easier to run bmp example on Python
1 parent a0dd880 commit 47289da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/epd_bitmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
display.rotation = 0
5151

52-
FILENAME = "blinka154mono.bmp"
52+
FILENAME = "blinka.bmp"
5353

5454

5555
def read_le(s):
@@ -68,7 +68,7 @@ class BMPError(Exception):
6868

6969
def display_bitmap(epd, filename): # pylint: disable=too-many-locals, too-many-branches
7070
try:
71-
f = open("/" + filename, "rb")
71+
f = open(filename, "rb")
7272
except OSError:
7373
print("Couldn't open file")
7474
return

0 commit comments

Comments
 (0)