is31fl3236a

CircuitPython helper library for the IS31FL3236A LED driver IC

  • Author(s): Randy Glenn

Implementation Notes

Hardware:

Software and Dependencies:

class is31fl3236a.IS31FL3236A(i2c_bus, *, address=60)

Initialise the IS31FL3236A chip at address on i2c_bus.

Parameters
  • i2c_bus (I2C) – The I2C bus which the IS31FL3236A is connected to.

  • address (int) – The I2C address of the IS31FL3236A.

  • reference_clock_speed (int) – The frequency of the internal reference clock in Hertz.

channels

Sequence of 36 PWMChannel objects. One for each channel.

deinit()

Stop using the IS31FL3236A.

property frequency

The overall PWM frequency in Hertz. Valid values for IS31FL3236A are 3000 and 22000 Hz

reset()

Reset the chip.

class is31fl3236a.IS31FLChannels(is31fl)

Lazily creates and caches channel objects as needed. Treat it like a sequence.

class is31fl3236a.PWMChannel(is31fl, index)

A single IS31FL3236A channel that matches the PWMOut API.

property duty_cycle

16 bit value that dictates how much of one cycle is high (1) versus low (0). 0xffff will always be high, 0 will always be low and 0x7fff will be half high and then half low.

property frequency

The overall PWM frequency in Hertz (read-only). A PWMChannel’s frequency cannot be set individually. All channels share a common frequency, set by IS31FL3236A.frequency.