bremme/arduino-tm1637

support for Dots (not only single colon at the middle)

strunx opened this issue · 1 comments

hi,

Is there a chance to get a function into your great Library like:

setDots(mask)
Set dots at the places corresponding to the four digits.
mask for each dot, so there can be displayed e.g.
0.00.0
0.0.0.0
00.00
0.0.00

?

This is not straightforward since there are many different display on the market. Some have dots, some have colon and they are all wired differently (and some that do have dots have not wired them to the IC). When I originally wrote this library I only tested it on the display as showed on the main page. I'm thinking of doing a large rewrite or perhaps release a new library which should properly support all/most displays on the market. Until that time its best to write you own setDots function which works for your display. You first have to figure out if any of the dots/colons are connected at all, you can test by setting the 7th bit on every position and see what happens (printRaw(0x80, position).Once you know which dots/colons are mapped to which bits you can implement your setDots function. If you want you can let me know your exact display type, pcb and IC so I can make a list of how the different displays are mapped.