Skip to content

Commit 7b7c220

Browse files
authored
Merge pull request #124 from caternuson/iss121_comment
Update enocder example with code comment
2 parents 503dfa1 + a044076 commit 7b7c220

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/seesaw_rotary_simpletest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
if seesaw_product != 4991:
2121
print("Wrong firmware loaded? Expected 4991")
2222

23+
# Configure seesaw pin used to read knob button presses
24+
# The internal pull up is enabled to prevent floating input
2325
seesaw.pin_mode(24, seesaw.INPUT_PULLUP)
2426
button = digitalio.DigitalIO(seesaw, 24)
27+
2528
button_held = False
2629

2730
encoder = rotaryio.IncrementalEncoder(seesaw)

0 commit comments

Comments
 (0)