Hello,
I know that this topic has been raised before, however, I failed to find the answer i am looking for.
I have the following string:
String S = "0b00001111";
I need it to become the following byte
byte B = 0b00001111;
so that I can later put it into the following array
byte B_array [8] = (0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000);
I have already tried this:
B = byte (S.toInt());
and it doesn't work as expected - it just creates a single integer out of the String. (or better it actually works as it says but this is not what I want it to do.
B = byte (S);
doesn't work either