Closed jrconlin closed 3 years ago
@hierophect ^
Bit of added info while playing in the REPL:
if I create a
>>> i2c_bus = busio.I2C(board.SCL, board.SDA)
>>> pca_board = PCA9685(i2c_bus)
>>> pwm = PWMChannel(pca_board, 0)
>>> p pwm.frequency
50.0288
>>> p pwm._pca.reference_clock_speed
25000000
>>> p pwm._pca.prescale_reg
122
which are all expected values.
(Manually setting the pwm.duty_cycle
steps the motor, so yay?)
calling
>>> servo.Servo(pwm)
still throws the exception at the same location.
curiouser and curiouser.
(By the way, fully aware that this is a holiday weekend in the US, and a Friday in the rest of the world. Please go enjoy being away from the computer.)
Hi @jrconlin, the max recursion error can be misleading because it is thrown whenever we run out of stack space. It may not be that there is any recursion. Please try 6.0.0-alpha.1, I believe we made the stack larger on the F405 since 5.3.0.
Yep! That worked. Thanks!
I'm trying to wire up a PCA9685 controller board to a Adafruit STM32F405 using CircuitPython 5.3.0.
The code I'm using to test things out is based on the example code you provide.
I'm getting the following:
Hopefully, I'm just being dumb, but even after chasing the error into the libraries I'm having a hard time spotting what's triggering the recursion.