We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91e13b5 commit 7e036eeCopy full SHA for 7e036ee
1 file changed
EInk_Autostereograms/code.py
@@ -34,28 +34,21 @@ def read_buttons():
34
with AnalogIn(board.A3) as ain:
35
reading = ain.value / 65535
36
if reading > 0.75:
37
-
38
- None
+ None
39
if reading > 0.4:
40
41
- 4
+ 4
42
if reading > 0.25:
43
44
- 3
+ 3
45
if reading > 0.13:
46
47
- 2
48
49
- 1
50
+ 2
+ 1
51
52
# display bitmap file
53
def display_bitmap(epd, filename):
54
try:
55
f = open("/" + filename, "rb")
56
except OSError:
57
display_message("Error: Couldn't open file " + filename)
58
59
60
print("File opened")
61
0 commit comments