Create a LGPIOServoController instance
GPIO chip number (usually 0)
GPIO pin number (BCM)
PWM frequency in Hz (default 50 for standard servos)
Cleanup and stop the controller
Get the current angle (approximately)
Get the current pulse width
Check if the controller is running
Set servo angle (0-180 degrees) 0° = 0.5ms pulse, 90° = 1.5ms pulse, 180° = 2.5ms pulse
Angle in degrees (0-180)
Set the servo to a specific position.
Servo position in microseconds (500-2500 for standard servos)
Set pulse width in milliseconds Valid range is 0.5-2.5ms for standard servos
Pulse width in milliseconds
Start the servo controller worker
Stop the servo controller and clean up resources
Servo controller using lgpio on Raspberry Pi GPIO character devices