Low level control over TM1638 #3335
Unanswered
Savjee
asked this question in
I'm not sure
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe your request
I'm currently working on converting a Tuya socket thermostat to ESPHome (AliExpress listing).
I've got everything working, but I believe some changes are needed to make the LED display fully functional.
The LED display uses a GN1616 chip, a clone of the TM1638. However, some of the LEDs are masked off so they can be used to indicate certain things.
For instance:
I can use ESPHome to display the current temperature by using the printf function and using spaces to skip the other indicators:
This converts the string representation to the correct "seven_sig" representation for the TM1638.
However, to control the individual LEDs, I need low-level access to ESPHome's internal buffer. At the moment I solved this by forking the TM1638 component and adding a
set_segmentsmethod:I'd like to know if there are better solutions. And if not, if I could open a PR for a change like this.
Any feedback is appreciated!
Why the uncertainty?
No response
Use cases
Low-level control over the TM1638 buffer.
What areas might this affect?
tm1638
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions