Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By stern0m1
#71374 Im trying to read bits but im getting weird results.
Code: Select allfor (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