bremme / arduino-tm1637

Arduino library for using a 4 digit seven segment display with TM1636 or TM1637 driver IC
GNU General Public License v2.0
164 stars 62 forks source link

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

Open strunx opened 4 years ago

strunx commented 4 years ago

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

?

bremme commented 4 years ago

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.