avishorp / TM1637

Arduino library for TM1637 (LED Driver)
GNU Lesser General Public License v3.0
427 stars 218 forks source link

Central Colunm Activation #20

Closed RogerMito closed 6 years ago

RogerMito commented 7 years ago

Hello friends. First of all I would like to thank you for the wonderful work you have done. I am using a library developed by you on a personal project of a clock. However, I am not able to activate the central column of the display. I'm using version 1.1.0 of the library. I noticed that there is no implementation for the "point" method: display.point (POINT_ON); Display.point (POINT_OFF); can you help me?

Thank you.

avishorp commented 7 years ago

It depends on how you use the library:

Sn3b commented 7 years ago

How do you use showNumberDecEx to display the central column?

avishorp commented 7 years ago

showNumberDecEx has an extra argument that contains a bitmask that controls the 8'th segment of each digit. This one is usually connected to the colon mark or to the decimal points. Please have a look at the test code.

ybaransky commented 6 years ago

Is it really either the colon or the decimal point, never both? It seems the LED PCB part I am using connects only to the colon, even though the image shows the colon and the decimal points lit. Can someone post a 4-digit part hardware part that does the decimal point? The part I am using is https://www.ebay.com/itm/0-56-inch-TM1637-4-Bits-LED-Clock-Tube-Display-for-Arduino-Red-Blue-Green-White/112674024638?hash=item1a3be52cbe:m:mU29WDo2Sfcy3aGBDVrYUNA thx

gerrydelasel commented 6 years ago

That display has a decimal point for each digit which can be addressed in the usual way (0bxGFEDCBA where x is the decimal point). But the colon is separately controlled and will probably need a dedicated function.