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

Common anode seven-segment displays are showing garbled characters. #4

Open
maxadc opened this issue Sep 29, 2023 · 1 comment
Open

Comments

@maxadc
Copy link

maxadc commented Sep 29, 2023

电路图:https://mega.nz/file/kjN11LYT#6cBTBc2qtN3b1zZoZwOlvEIwgFWEGEINRQoPTtnvLSE

A very good library, the code is written beautifully. However, when I tested it, there was a problem. Since my library is for common anode seven-segment displays, it does not match the code. Even if I try to invert the _SEGMENTS, the display still shows garbled characters.

一个非常好的库,代码写很美。我测试了一下,有个问题。
由于我的库是共阳级数码管,和代码不匹配,我将_SEGMENTS取反测试依然不行。数码管乱码

@mcauser
Copy link
Owner

mcauser commented Sep 29, 2023

That is unfortunately the correct behaviour for this library. It was designed to work with common cathode display modules.

It'll need a significant rewrite to support both common cathode and common anode displays.

In common cathode, one byte of _SEGMENTS represents a single 8. 7-segment character.
In common anode, the same 7-segment character is spread across 8 bytes.

Same issue as #2

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