Soooo . the .print() support is ready. The mapping of all 127 ASCII chars to a seven segments display took some time but so far I did found no error. I will upload the updated library today or tomorrow.
I did also add a function .printf() which is similar to stdio.h's. This page was very helpful doing that. So now I can use this code:
myTiny7.printf("%d`C",21);
(note: ` is the only ASCII char wich is mapped to another symbol ( ° ). ° is not part of ASCII code and ` is the same as ' on seven segments displays)This is the result on the display;
As you can see it is working on an ATtiny (ATtiny85 used as Trinket). Arduino Nano is also tested and working. I do not have yet other types of Arduinos to test it, but I will test this on my ESP board soon.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Very nice!
Are you sure? yes | no