micropython-tm1638 icon indicating copy to clipboard operation
micropython-tm1638 copied to clipboard

Common anode seven-segment displays are showing garbled characters.

Open maxadc opened this issue 2 years ago • 1 comments

电路图: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取反测试依然不行。数码管乱码

maxadc avatar Sep 29 '23 03:09 maxadc

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

mcauser avatar Sep 29 '23 04:09 mcauser