Open GoogleCodeExporter opened 8 years ago
@rjbatista I have this problem too, could you fix it please?
Workaround:
/**
* Fix for https://github.com/rjbatista/tm1638-library/issues/36
*/
#include <TM1638QYF.h>
class TM1638QYFS : public TM1638QYF
{
public:
TM1638QYFS(byte dataPin, byte clockPin, byte strobePin, boolean activateDisplay = true, byte intensity = 7)
: TM1638QYF(dataPin, clockPin, strobePin, activateDisplay, intensity)
{
// Nothing to do
}
protected:
virtual void sendData(byte address, byte data)
{
TM1638QYF::sendData(address, ((data & 0x0F) << 4) | ((data & 0xF0) >> 4)); // swap Hi-Lo nibble
}
};
My TM1638QYF works correctly without this swap, so I'm guessing it's a manufacture "change".
I'll try to support both versions with compile flags as soon as I find a bit of free time!
Original issue reported on code.google.com by
jiri.sut...@gmail.com
on 26 Jul 2015 at 6:23