rjbatista / tm1638-library

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

modul.setDots(byte) #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output?
Dot's on display
Please provide any additional information below.
Would be nice to add this command so we can turn on any dot on display without 
erasing existing content so that if i send string "234 TEST" and afterwards i 
send module.setDots(0b01000000) i get on display "23.4 TEST"

Original issue reported on code.google.com by sikl...@gmail.com on 14 Nov 2011 at 2:28

GoogleCodeExporter commented 8 years ago
The problem with that is that the dot is treated like any other segment on the 
7-segment display. I can't really just set the dot without setting the other 6 
segments. I can't really create a setDots() method without saving what is 
displayed on every other segment.

I didn't have access to the datasheet on the TM1638 so I don't know if I can 
read back the display values instead of storing them on the library but, for 
now, there is really no need to spend the extra memory by storing values on the 
library itself.

What I can do is add a dots argument on setDisplayToString like on the 
numerical functions.

Hope that solves it, for now.

Original comment by rjbati...@gmail.com on 14 Nov 2011 at 5:16

GoogleCodeExporter commented 8 years ago
That would do the job... great...thanks

Original comment by sikl...@gmail.com on 14 Nov 2011 at 5:20

GoogleCodeExporter commented 8 years ago
Available in version 1.4.0

Original comment by rjbati...@gmail.com on 14 Nov 2011 at 9:13