I’m running CircuitStudio on a Seeeduino Xiao, because it looked interesting and I figured I’d try it instead of C++. With a blank code.py, I go into the serial monitor to assign A6 as a PWM output:
from pwmio import PWMOut import board pwmPin = PWMOut(board.A6, frequency=40000, duty_cycle=50, variable_frequency=True)
but I get a ValueError exception:
ValueError: All timers for this pin are in use
Does anybody know how I can find out what the timer is assigned to, if I can free it, and if so how to do so?