2 Commits

Author SHA1 Message Date
rjbatista@gmail.com
f9eecc06e3 small correction 2012-01-11 02:17:26 +00:00
rjbatista@gmail.com
76e0696880 Version 2.0.0 2012-01-11 01:46:00 +00:00
4 changed files with 3 additions and 20 deletions

View File

@@ -1,8 +1,3 @@
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,9 +165,3 @@ 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,13 +59,7 @@ class TM16XX
const byte font[] = FONT_DEFAULT);
protected:
#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 sendChar(byte pos, byte data, boolean dot) = 0;
virtual void sendCommand(byte led);
virtual void sendData(byte add, byte data);