Lets say i have a number in binary 00110110 stored in variable "a". How can I split up "a" and make it so that from the one variable is now 8 different variables? So in conclusion
a = 00110110
b = 0
c = 0
d = 1
e = 1
f = 0
g = 1
h = 1
i = 0
Lets say i have a number in binary 00110110 stored in variable "a". How can I split up "a" and make it so that from the one variable is now 8 different variables? So in conclusion
a = 00110110
b = 0
c = 0
d = 1
e = 1
f = 0
g = 1
h = 1
i = 0
bitRead() and a for loop
How can I split up "a" and make it so that from the one variable is now 8 different variables?
Now that you know how, let's hear why.
Can you please use your bitread() function in code please. And this is for a DCC system that i am making with the MEGA board.
tfoote:
Can you please use your bitread() function in code please.
Have you bothered to read the documentation on it and try it yourself? It's pretty trivial...