bibliopixel.drivers.SPI.APA102 module¶
-
class
bibliopixel.drivers.SPI.APA102.
APA102
(num, gamma=<bibliopixel.colors.gamma.Gamma object>, **kwargs)[source]¶ Bases:
bibliopixel.drivers.SPI.base.SPIBase
Driver for APA102/SK9822 based LED strips on devices like the Raspberry Pi and BeagleBone
Provides the same parameters as
bibliopixel.drivers.SPI.SPIBase
-
set_device_brightness
(val)[source]¶ APA102 & SK9822 support on-chip brightness control, allowing greater color depth.
APA102 superimposes a 440Hz PWM on the 19kHz base PWM to control brightness. SK9822 uses a base 4.7kHz PWM but controls brightness with a variable current source.
Because of this SK9822 will have much less flicker at lower levels. Either way, this option is better and faster than scaling in BiblioPixel.
-