hello,
i just made a new nice and simple seven segment library, you could find it at my website by clicking on the link below and downloading the new sevensegment library.
Great!
I would however suggest that you make the pins selectable for the user, and that you change a lot of the ints to bytes. Maybe even use binary values.
And maybe add support for using shift registers?
I would be glad to contribute to you library, if you need help.
yep the pins are selectable you just have to define an array and send it
for example int a[]={5,6,7,8,9,4,3}
sevenSegment n(a); // thats for selecting the pins
Oh. :-[
I missed the second constructor.
A slightly altered version:
SevenSegment.rar
It uses binary logic to store states.
So instead of int [10][7] which is 140 bytes, it uses 10.
It is however, not tested. Could you test the code? Maybe make some more changes, and upload again? [I do not have my arduino in reach as of now, but I will test this ASAP]
thanks alphabeta i will soon modify it.