bitRead
Posted: Sun Oct 29, 2017 7:26 pm
Im trying to read bits but im getting weird results.
This is print for most numbers 00000000.
Why? And how can i get the bits?
Thanks
Code: Select all
for (int i=10;i<100;i++){
Serial.println(i);
for(int x =0;x<8;x++){
Serial.print(bitRead(x,i));
}
Serial.println();
}
This is print for most numbers 00000000.
Why? And how can i get the bits?
Thanks