rjbatista / tm1638-library

Automatically exported from code.google.com/p/tm1638-library
141 stars 75 forks source link

setDisplayToString dot set problem #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.char* zeropower = "  00  00";
2.module1.setDisplayToString(zeropower, 0b00100010);
3.

What is the expected output? What do you see instead?
- Expecting dots on the third and seventh digit. Seeing no dots. Works with 
setDisplayToDecNumber and others, but need to use strings in my setup.

What version of the product are you using? On what operating system?
2.0.1 on Windows XP, Arduino Nano 3.0

Please provide any additional information below.
Thank you for your wonderful library. I am making speed/power/consumption meter 
for my electric bike with TM1638 module using your libraries.

Original issue reported on code.google.com by quazs...@gmail.com on 18 Jan 2012 at 9:08

GoogleCodeExporter commented 8 years ago
Change line 96 in TM16XX.ccp into this to fix:
sendChar(i + pos, font[string[i] - 32], (dots & 1 << (displays - i - 1)) != 0);

The String-version needs the same fix.

Original comment by staal...@gmail.com on 28 Jan 2012 at 3:28

GoogleCodeExporter commented 8 years ago
Corrected. Will be on the next version.

Thanks for your help staalebk.

Sorry for the late correction, but I've had little time for hobbies.

Original comment by rjbati...@gmail.com on 20 Feb 2012 at 9:31