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

Decimal point not working #21

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello, how do I turn on decimal points?

Thank you

ybaransky commented 6 years ago

same question. i also tried using avishort's tm1637 driver and i could only get the colon to work. no decimals. i am using the wemos d1 esp8266 to drive this (if it makes any difference). thx -yurij

bremme commented 6 years ago

Some displays have not everything (dots/colons) wired. Could you guys post me an image or link to the display you are using. Furthermore, usually the dots/colons are connected to the last bit. Perhaps you guys can also figure out if and which dots/colons are connected to the 7th bit at which position:

  display.clear();
  for (unsigned char i=0; i < 4; i ++) {
    unsigned char lastBit = B10000000; // 128 in decimal, only enable bit 7
    display.printRaw(lastBit, i);
    Serial.print("Enable last bit at position: " ); Serial.println(i);
    delay(1000);
    display.clear();
  }
bremme commented 6 years ago

I need to think of a better solution to this problem. It's all related to the different wiring and different displays used in combination with the TM1637. I will close this for now.