I doubt it is one error like it says
@@ -34,21 +34,15 @@ def read_buttons():
with AnalogIn(board.A3) as ain:
reading = ain.value / 65535
if reading > 0.75:
-
None
if reading > 0.4:
-
4
if reading > 0.25:
-
3
if reading > 0.13:
-
2
-
1
-
# display bitmap file
def display_bitmap(epd, filename):
try:
@@ -56,7 +50,6 @@ def display_bitmap(epd, filename):
except OSError:
display_message("Error: Couldn't open file " + filename)
-
print("File opened")
try:
if f.read(2) != b"BM": # check signature
