ISSUE #22: corrected setDisplayDigit repeatedly with the dot set to true

This commit is contained in:
rjbatista@gmail.com
2012-06-11 21:16:15 +00:00
parent 7a94b31533
commit b779a65eb9
2 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
- ISSUE #24: Correction on setDisplayToDecNumber bug (thanks to hbx3485);
- ISSUE #22: corrected setDisplayDigit repeatedly with the dot set to true;
- ISSUE #24: Correction on setDisplayToDecNumber bug (thanks to hbx3485).
Version 2.1.1

View File

@@ -35,6 +35,12 @@ TM1640::TM1640(byte dataPin, byte clockPin, boolean activateDisplay, byte intens
void TM1640::sendChar(byte pos, byte data, boolean dot)
{
sendData(pos, data | (dot ? 0b10000000 : 0));
// necessary for the TM1640
digitalWrite(strobePin, LOW);
digitalWrite(clockPin, LOW);
digitalWrite(clockPin, HIGH);
digitalWrite(strobePin, HIGH);
}
void TM1640::clearDisplay()