binary out

Cool, glad I could help.

These little beasties are a ton of fun, just don't let a successful project stop you from breaking something else that doesn't need to be broken, or creating something for someone else to break!

Bitwise operators are the "right" way to do this, some might say.. I'd suggest you do a bit of reading on it in a general programming sense, if you'll be doing a lot of this sort of thing... it's cleaner and faster if you are doing a lot of it. On the other hand, using loops and such like I did makes for code that "reads" a little better, especially to people that don't spend a lot of time coding. If this is the extent of the project, it really doesn't matter.

There's always a number of ways to come at any problem, as long as the end result is what you need, it often doesn't matter how you got there...

as an aside, for some reason this makes me think about building an audio VU meter that displays in Binary on LED's...lol... OK, that's geeky, even for me.