I'm trying to control a servo motor from a Trinket M0. My circuitpython code is:
import time import board import pulseio from adafruit_motor import servo pwm = pulseio.PWMOut(board.A4, duty_cycle=2 ** 15, frequency=1000) my_servo = servo.Servo(pwm) my_servo.angle = 180
But I get a ValueError saying that "PWM duty_cycle must be between 0 and 65535 inclusive (16 bit resolution)."
Full disclosure: this used to work but I accidentally short circuited my wiring by connecting the control wire of the servo to the reset pin of the Trinket M0. Is it possible that this would have damaged the SAMD21 on the M0?