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

Constant NUM_TLC5974 is wrong #12

Open
AlanGitMan opened this issue Jan 15, 2023 · 5 comments
Open

Constant NUM_TLC5974 is wrong #12

AlanGitMan opened this issue Jan 15, 2023 · 5 comments

Comments

@AlanGitMan
Copy link
Contributor

Picky bug, but nonetheless here we go!
In the example code the device name is wrong in the NUM_TLC5974 declaration and usages throughout.
It should of course be NUM_TLC5947

Also, I haven't been able to find any info in the code or the docs about when and for what you would use the OE input to the board - or not.

@caternuson
Copy link
Contributor

caternuson commented Jan 15, 2023

Yah, looks like a typo. Luckily just cosmetic, since it's a constant and the code at least is consistent with the usage. Would you be willing to make a PR that fixes the typo?

The pin labeled OE is tied to the BLANK pin on the TLC5947. Here's the description from the datasheet:
image
That just needs to be attached to any available GPIO pin, and can then be controlled in user code with digitalWrite

@AlanGitMan
Copy link
Contributor Author

AlanGitMan commented Jan 16, 2023 via email

@caternuson
Copy link
Contributor

There's nothing currently in the library that deals with the OE pin in any way. It's only shown in the example sketch - that's not library code. To make things generally easier to use, the TLC9547 has a pull down resistor on the BLANK (OE) pin so the default is always on. That way, using the OE pin is optional.

However, that does not fix the general issue you are describing, since it requires actively driving whatever pin on the microcontroller the OE pin is attached to. That's trivial code - but the code must be running. So during resets, the behavior can be application dependent. It sounds like you'd prefer to have the pull resistor be up instead of down so that the TLC5947 is default off. And thus requires user code to drive the OE pin to enable.

@AlanGitMan
Copy link
Contributor Author

AlanGitMan commented Jan 17, 2023 via email

@caternuson
Copy link
Contributor

The OE thing is a design trade off, and more of a hardware thing. You could open an issue in the PCB repo:
https://github.com/adafruit/Adafruit-TLC5947-PCB
that brings this up. That way it might be considered for a future rev of the board. Like maybe solder pad jumpers that would allow configuring the pull resistor to go either way?

The ESP32 issue should be dealt with in a new issue or forum post. A forum post would be preferred as a starting point, along with photos of the setup and a simple example sketch that can demonstrate the issue.

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

No branches or pull requests

2 participants