So the 8x8 led matrix takes in input in the form of: B00000001 where 0 is off and 1 is on for that row. It's a byte but I wrote a function to automate generating them as strings. So this function outputs "B00000001" and I would like to convert this into a compatible form that the 8x8 led matrix can take. Is there casting?
Which library were you planning on using?
Your question is vague.
So this function outputs "B00000001" and I would like to convert this into a compatible form that the 8x8 led matrix can take. Is there casting?
No. You stupidly converted a binary value to a string. You get to do it the hard way, and convert that string back to a binary value.
And confusing. Your title says Strings and the question says string. So String object or null terminated character array (string).
I wrote a function to automate generating them as strings.
Post the complete program that does this
Is this for a simple row multiplexing strobe? If so, it is insane to use any method but simply shifting a bit up or down in a byte. You will see that in 99% of matrix drivers that are not of the introductory example kind.