is31fl3236a¶
CircuitPython helper library for the IS31FL3236A LED driver IC
Author(s): Randy Glenn
Implementation Notes¶
Hardware:
Any device using the IS31FL3236A from Lumissil: https://www.lumissil.com/assets/pdf/core/FIS31FL3236A_DS.pdf
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
- class is31fl3236a.IS31FL3236A(i2c_bus, *, address=60)¶
Initialise the IS31FL3236A chip at
addressoni2c_bus.- Parameters
- channels¶
Sequence of 36
PWMChannelobjects. 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
PWMOutAPI.- 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.