rikveenboer / tm1638-library

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

Displaying single letters #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to be able to set individual positions using the "FONT_DEFAULT" 
letters.

Perhaps you could change the setDisplayDigit to accept "font", FONT_DEFAULT as 
the fourth argument, but still have it default to "NUMBER_FONT".

Original issue reported on code.google.com by dacomput...@gmail.com on 15 Dec 2011 at 10:19

GoogleCodeExporter commented 9 years ago
Actually, that's already what setDisplayDigit does!

The number font is a specific font for digits (including hexadecimal) and not a 
general font like FONT_DEFAULT.

What I can do is set the setDisplayToString to receive a starting position 
(defaulting to the start). I think that would solve your problem, right ?

Original comment by rjbati...@gmail.com on 15 Dec 2011 at 10:40

GoogleCodeExporter commented 9 years ago
Right now i'm setting all of the other digits individually with the 
setDisplayDigit command.

I've tested to see if your suggestion might work. 
I did this by setting digits 2-8 with the setDisplayDigit, while using 
setDisplayString on the first digit, and it glitches my display. 

All of the other numbers flicker.

Original comment by dacomput...@gmail.com on 15 Dec 2011 at 11:01

GoogleCodeExporter commented 9 years ago
The setDisplayToString (till v1.5.2) ALWAYS updates the 8 digits - it doesn't 
stop on '\0', so there is no way for it to work.

I'll have to change it to add a starting position and make it stop at the 
string end.

Original comment by rjbati...@gmail.com on 15 Dec 2011 at 11:06

GoogleCodeExporter commented 9 years ago
That sounds like it would work. :)

Thanks!

Original comment by dacomput...@gmail.com on 15 Dec 2011 at 11:24

GoogleCodeExporter commented 9 years ago
Support implemented on v1.6.0

Original comment by rjbati...@gmail.com on 15 Dec 2011 at 11:07

GoogleCodeExporter commented 9 years ago
Can you update the Wiki/Library Reference to show the new syntax?

Thanks!

Original comment by dacomput...@gmail.com on 16 Dec 2011 at 1:47

GoogleCodeExporter commented 9 years ago
The reference is now updated.

Original comment by rjbati...@gmail.com on 16 Dec 2011 at 10:28