Skip to content

Commit 3d7fba9

Browse files
authored
Encoder: minor fix to usage example
1 parent cfe05ed commit 3d7fba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_BBIO/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cur_position = myEncoder.position
2828

2929
# Position can also be set as a property
3030
next_position = 15
31-
myEncoder.position = 15
31+
myEncoder.position = next_position
3232

3333
# Reset position to 0
3434
myEncoder.zero()

0 commit comments

Comments
 (0)