Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for TLC5947 24-Channel PWM driver. #551

Merged
merged 3 commits into from
Jan 15, 2022

Conversation

xonestonex
Copy link
Contributor

This commit adds support for the TLC5947 24-Channel PWM driver used on the Adafruit 24-Channel 12-bit PWM breakout board.
This driver needs 2 SPI data pins and an additional "latch" pin to apply the color values. An optional "output enable" pin can be used to prevent flickering during color updates.
To match the internal 12-bit PWM depth, scaling of the regular RGB/RGBA 8-bit and 16-bit color features is performed,
This commit also adds two additional SPI speed modes (15Mhz/30Mhz) to match the maximal values defined in the data sheet.

This driver has been tested on Arduino, ESP8266 and ESP32 in Bit-banging and hardware SPI modes against the Adafruit driver implementation.

Copy link
Owner

@Makuna Makuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • You need to update the Keywords file with all the new "public" types like Tlc5947SpiMethod
  • make sure all files have no tabs, tabs should be replaced with 4 spaces (except keywords, it requires tabs)

src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
src/NeoPixelBrightnessBus.h Outdated Show resolved Hide resolved
src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
src/internal/TLC5947GenericMethod.h Outdated Show resolved Hide resolved
@xonestonex xonestonex requested a review from Makuna January 11, 2022 19:28
@Makuna Makuna merged commit e31677a into Makuna:master Jan 15, 2022
AMoo-Miki pushed a commit to AMoo-Miki/NeoPixelBus that referenced this pull request Aug 15, 2022
* Add support for TLC5947 24-Channel PWM driver.

* Refactor code to match coding guidelines and better documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants