Merge pull request #70 from adafruit/fix-rotaryencoder-example

Remove call to never-defined function
This commit is contained in:
Jeff Epler 2024-09-18 16:52:15 -05:00 committed by GitHub
commit 2b219924fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,8 +110,6 @@ encoder = IncrementalEncoder(board.GP2, board.GP3)
old_value = None
while True:
gen() # pylint: disable=undefined-variable
value = encoder.value
if old_value != value:
print("Encoder:", value)