ICSServo: ICS serial servo driver library
pip install icsservo
# Disable Bluetooth and Enable PL011 uart.
# MiniUART cannot be used because it does not support parity.
# https://www.raspberrypi.org/documentation/configuration/uart.md
echo 'dtoverlay=pi3-miniuart-bt' | sudo tee -a /boot/config.txt
# Reboot to apply changes
sudo reboot
from icsservo import IOProvider
with IOProvider(device="/dev/serial0", en_idx=23) as io:
servo = io.servo(1) # Servo with ID 1
servo.set_position(3.14 / 2)