I’ve hit a roadblock. Ive made a game which is played on a 8*8 led matrix that also tracks player score. I’d like to be able to display the score at the end of the game, as lit leds, so we’ve got 8 bits to work with.
The score is stored as an int called score... and that’s as far as I’ve gotten.
I’m confident that I can figure out how to display the score if I have it as binary in a Boolean array. But I simply have no idea how to do the conversion.
I’ve seen quite a number of topics on different ways of doing the decimal to binary conversion, but not one I could use.
To summarize: an int smaller than 256 needs to be converted to binary and stored in a Boolean array.
Any help is greatly appreciated!!