Skip to content

Commit 7e036ee

Browse files
authored
I doubt it is one error like it says
1 parent 91e13b5 commit 7e036ee

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

EInk_Autostereograms/code.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,21 @@ def read_buttons():
3434
with AnalogIn(board.A3) as ain:
3535
reading = ain.value / 65535
3636
if reading > 0.75:
37-
38-
None
37+
None
3938
if reading > 0.4:
40-
41-
4
39+
4
4240
if reading > 0.25:
43-
44-
3
41+
3
4542
if reading > 0.13:
46-
47-
2
48-
49-
1
50-
43+
2
44+
1
5145

5246
# display bitmap file
5347
def display_bitmap(epd, filename):
5448
try:
5549
f = open("/" + filename, "rb")
5650
except OSError:
5751
display_message("Error: Couldn't open file " + filename)
58-
5952

6053
print("File opened")
6154
try:

0 commit comments

Comments
 (0)