ISSUE #22: corrected setDisplayDigit repeatedly with the dot set to true
This commit is contained in:
@@ -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
|
Version 2.1.1
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,12 @@ TM1640::TM1640(byte dataPin, byte clockPin, boolean activateDisplay, byte intens
|
|||||||
void TM1640::sendChar(byte pos, byte data, boolean dot)
|
void TM1640::sendChar(byte pos, byte data, boolean dot)
|
||||||
{
|
{
|
||||||
sendData(pos, data | (dot ? 0b10000000 : 0));
|
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()
|
void TM1640::clearDisplay()
|
||||||
|
|||||||
Reference in New Issue
Block a user