9 Commits

Author SHA1 Message Date
rjbatista@gmail.com
576de31143 2012-11-06 22:02:06 +00:00
rjbatista@gmail.com
80f687aff6 Version 2.1.3 2012-11-06 22:01:32 +00:00
rjbatista@gmail.com
00cd075f69 2012-11-06 22:00:56 +00:00
rjbatista@gmail.com
6b4cfae6e5 2012-11-06 21:57:35 +00:00
rjbatista@gmail.com
1508d99abb Version 2.1.2 2012-06-11 21:38:49 +00:00
rjbatista@gmail.com
b779a65eb9 ISSUE #22: corrected setDisplayDigit repeatedly with the dot set to true 2012-06-11 21:16:15 +00:00
rjbatista@gmail.com
7a94b31533 ISSUE #24: Correction on setDisplayToDecNumber bug (thanks to hbx3485); 2012-06-11 21:07:45 +00:00
rjbatista@gmail.com
e4a7aad4d7 ISSUE #24: Correction on setDisplayToDecNumber bug (thanks hbx3485) 2012-06-11 21:05:16 +00:00
rjbatista@gmail.com
5756b7ae7d 2012-03-13 00:05:08 +00:00
4 changed files with 18 additions and 2 deletions

View File

@@ -1,6 +1,15 @@
Version 2.1.3
- ISSUE #26: Added a define TM1638_COLOR_NONE for clarity when clearing a single LED.
Version 2.1.2
- 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
- ISSUE #21: Problems on clearDisplay and setupDisplay; - ISSUE #21: Problems on clearDisplay and setupDisplay.
Version 2.1.0 Version 2.1.0

View File

@@ -68,7 +68,7 @@ void TM1638::setDisplayToDecNumberAt(unsigned long number, byte dots, byte start
void TM1638::setDisplayToDecNumber(unsigned long number, byte dots, boolean leadingZeros, void TM1638::setDisplayToDecNumber(unsigned long number, byte dots, boolean leadingZeros,
const byte numberFont[]) const byte numberFont[])
{ {
setDisplayToDecNumberAt(number, dots, leadingZeros, 0, numberFont); setDisplayToDecNumberAt(number, dots, 0, leadingZeros, numberFont);
} }
void TM1638::setDisplayToSignedDecNumber(signed long number, byte dots, boolean leadingZeros, void TM1638::setDisplayToSignedDecNumber(signed long number, byte dots, boolean leadingZeros,

View File

@@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "TM16XX.h" #include "TM16XX.h"
#include "TM16XXFonts.h" #include "TM16XXFonts.h"
#define TM1638_COLOR_NONE 0
#define TM1638_COLOR_RED 1 #define TM1638_COLOR_RED 1
#define TM1638_COLOR_GREEN 2 #define TM1638_COLOR_GREEN 2

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) 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()