ConstHow many channels it drives.
How many counts each period is divided into.
The address it answers at with its six address pins low.
The part's internal oscillator frequency, in hertz.
MODE1's bits.
The register pointer moves on after each byte.
The prescaler divides the EXTCLK pin rather than the oscillator.
Set when the part slept with a channel running; cleared by a written 1.
The oscillator is off and PRE_SCALE takes a write.
MODE1 at power-up: asleep, answering the All Call address.
MODE2 at power-up: totem-pole outputs.
How long the oscillator takes to run once woken, in microseconds.
The smallest value the part loads into PRE_SCALE.
PRE_SCALE at power-up: 200 Hz on the internal oscillator.
The registers a driver writes and a program reads back.
The first of the four registers that load every channel at once.
The first of channel 0's four registers; channelRegister gives the rest.
Mode register 1: restart, clock, auto-increment, sleep, and the addresses answered.
Mode register 2: how the outputs are wired and when they change.
The prescaler, writable only while the part sleeps.
A PCA9685 that is not there. It holds the part's power-on registers and keeps its datasheet's rules: PRE_SCALE takes a write only while the part sleeps, the register pointer moves on only with auto-increment set, and one write to the ALL_LED registers loads every channel.
Returns the update rate a prescale value produces.
The prescale register value.
OptionaloscHz: number
The oscillator frequency, usually internalOscHz.
The frequency in hertz.
Returns the prescale value that sets an update rate.
The PWM frequency wanted.
OptionaloscHz: number
The oscillator frequency, usually internalOscHz.
The prescale register value.
An NXP PCA9685 16-channel PWM controller, for servos, LEDs, and valves.