-
Notifications
You must be signed in to change notification settings - Fork 220
Closed
Labels
Description
Hello, I'm trying to use the newly-supported frequency
getters and setters, but running into some difficulty.
My script begins by initializing eQEP0 and eQEP1. Because I wasn't sure what the default encoder polling frequency was, I then go:
print(qep0.frequency)
qep0.frequency(1000000)
qep1.frequency(1000000)
...this resulted in some python3 errors (I needed to wrap int() around some inputs in the frequency
methods), and after clearing those up I encountered an error in which self._eqep.node.period
is not initialized.
More specifically, I get the error
File "/usr/local/lib/python3.5/dist-packages/Adafruit_BBIO-1.0.8-py3.5-linux-armv7l.egg/Adafruit_BBIO/Encoder.py", line 279, in frequency
self._eqep.channel, frequency, period))
...thanks in advance for any advice/help you can provide!
AKA