Skip to main content

MicroPython Library

The Soldered PCA9685 MicroPython library wraps the PCA9685 in a single PCA9685 class. Construct it, and every channel is ready to drive with raw PWM ticks or a servo angle. Without an I2C object of your own, the constructor opens I2C bus 0 on pins 22 (SCL) and 21 (SDA) when the board reports the ESP32 or ESP8266 MicroPython port, and on boards that report another port name it stops with an error. When your board's Qwiic connector uses other pins, pass your own machine.I2C object.

Not installed yet? Follow Quick Start before using the functionality pages.

Functionality​

Each page starts with one module example and explains every function the example uses to get that result.