5 Commits

Author SHA1 Message Date
rjbatista@gmail.com
082d20c562 Version 2.0.1 2012-01-18 00:03:49 +00:00
rjbatista@gmail.com
5e2afcdaeb Version 2.0.1 2012-01-18 00:02:19 +00:00
rjbatista@gmail.com
bdee0e3872 ISSUE #15: Backwards compatibility with previous Arduino IDE (pure virtual functions were not supported) 2012-01-17 22:52:47 +00:00
rjbatista@gmail.com
fb4924cc0a ISSUE #18: Corrected problem with setLEDs() caused by changes in the previous version 2012-01-17 22:19:00 +00:00
rjbatista@gmail.com
ca9bc6f3bb 2012-01-11 02:14:18 +00:00
4 changed files with 20 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
Version 2.0.1
- ISSUE #15: Backwards compatibility with previous Arduino IDE (pure virtual functions were not supported);
- ISSUE #18: Corrected problem with setLEDs() caused by changes in the previous version.
Version 2.0.0
- Support for the TM1640;

View File

@@ -82,11 +82,11 @@ void TM1638::setLEDs(word leds)
for (int i = 0; i < displays; i++) {
byte color = 0;
if (leds & (1 << i) != 0) {
if ((leds & (1 << i)) != 0) {
color |= TM1638_COLOR_RED;
}
if (leds & (1 << (i + 8)) != 0) {
if ((leds & (1 << (i + 8))) != 0) {
color |= TM1638_COLOR_GREEN;
}

View File

@@ -165,3 +165,9 @@ byte TM16XX::receive()
return temp;
}
#if !defined(ARDUINO) || ARDUINO < 100
// empty implementation instead of pure virtual for older Arduino IDE
void TM16XX::sendChar(byte pos, byte data, boolean dot) {}
#endif

View File

@@ -59,7 +59,13 @@ class TM16XX
const byte font[] = FONT_DEFAULT);
protected:
virtual void sendChar(byte pos, byte data, boolean dot) = 0;
#if defined(ARDUINO) && ARDUINO >= 100
// pure virtual is NOT supported in older Arduino IDE
virtual void sendChar(byte pos, byte data, boolean dot) = 0;
#else
virtual void sendChar(byte pos, byte data, boolean dot);
#endif
virtual void sendCommand(byte led);
virtual void sendData(byte add, byte data);