Hi, I’m trying to control a servo motor with uLisp on an RPi Pico. The motor expects the PWM frequency to be 50Hz. Directly using analogwrite
makes it rotate erratically, and I wonder if it is because the frequency is wrong.
In MicroPython you can set the PWM frequency on a pin:
from machine import Pin, PWM
servo = PWM(Pin(16))
servo.freq(50) # 50Hz, pulses every 20ms
How do I adjust the PWM frequency like this in uLisp? Thanks!