rikveenboer / tm1638-library

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

setDisplayToDecNumber on TM1640 #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Good afternoon/morning, 

After seeing a post 
http://tronixstuff.wordpress.com/2012/04/09/arduino-and-tm1640-led-display-modul
es/ and decided to order two of them... just for fun really.

After trying the sample code to display a string, I wanted to display a decimal 
and seeing the setDisplayToDecNumber function I implemented it and it fails to 
compile.

http://pastebin.com/rE6YXsrV is my sample code and it does not want to compile 
and I get the following error

sketch_jun10a.ino: In function 'void loop()':
sketch_jun10a:12: error: 'class TM1640' has no member named 
'setDisplayToDecNumber'

I'm not an expert in C++ but am poking around with it a little, any ideas you 
can have would be fantastic.

The only other idea is to convert all my decimal to a string before and display 
it that way rather then use the right feature although that seems kinda 
weird... Do you not have a 16 char LED display as the first link I provided you?

Thanks, 
--Aaron

Original issue reported on code.google.com by Aaron.Da...@gmail.com on 11 Jun 2012 at 1:35

GoogleCodeExporter commented 9 years ago
I've spoken with Aaron, over on #arduino@freenode.net. We got this working 
without too much bother and I can build a patch for this later on, if you'd 
like.

Original comment by abstract...@gmail.com on 11 Jun 2012 at 2:27

GoogleCodeExporter commented 9 years ago
Hi.

I have the untested implementation for the setDisplayToXXXNumber for the TM1640 
for a while - since the library inception - (using unsigned longs), but really 
couldn't find the time to take a proper look into it. It didn't really strike 
me as absolutely necessary due to the usual case being using sprintf to build 
the text to display instead of just the number.

Anyway, there is a lot on my plate at the moment, but I promise I'll look into 
this ASAP. :)

Contributions for the project are welcome and I'll try to incorporate them into 
the main trunk as quickly as I can.

Thank you all for your patience.

Original comment by rjbati...@gmail.com on 11 Jun 2012 at 2:34

GoogleCodeExporter commented 9 years ago

Original comment by rjbati...@gmail.com on 11 Jun 2012 at 9:44