Skip to content

Commit

Permalink
Merge pull request #28 from spencerhooks/patch-2
Browse files Browse the repository at this point in the history
Updated Rotary Encoder Usage example code
  • Loading branch information
guyc authored Apr 9, 2017
2 parents 8a3f362 + 2b6800b commit 4b8e78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Rotary Encoder Usage
encoder = gaugette.rotary_encoder.RotaryEncoder(gpio, A_PIN, B_PIN)
encoder.start()
while True:
delta = encoder.get_delta()
delta = encoder.get_cycles()
if delta!=0:
print "rotate %d" % delta
else:
Expand Down

0 comments on commit 4b8e78e

Please sign in to comment.