Bitmath values to char array
Posted: Tue Feb 25, 2014 11:02 am
Wondering if anyone could help me out with the most efficient way to do what I'm wanting.
Trying to take a single bit that I'm using to hold bitbang values and convert to two char arrays. I'm doing it now with String methods but I want to avoid String because of memory requirements.
Here's an example of what I'm trying to go from and get to:
Start with bit value = B01101101
Get to:
"on 1,3,4,6,7"
"off 2,5,8"
Trying to take a single bit that I'm using to hold bitbang values and convert to two char arrays. I'm doing it now with String methods but I want to avoid String because of memory requirements.
Here's an example of what I'm trying to go from and get to:
Start with bit value = B01101101
Get to:
"on 1,3,4,6,7"
"off 2,5,8"