help me fot , for loop program

Hello friends;
I want to save each bit of a byte in a separate variable. For example, 1110101,
1 save in a0,0 save in a1, 1 save in a2, 0 save a3,…
My code is as follows but it does not run.

int a=11110001;
int led1=3;
void setup() {
// put your setup code here, to run once:

void loop() {
//put your main code here, to run repeatedly:
for (int i=0;i<=8;i++){
int b*= bitRead(a,i);*
if (b[0]==1){

  • digitalWrite(led1,HIGH);*
  • delay(5000);*
int a=11110001;

Hit the reference pages, and see what range of values fit in an int.

bitRead() is for getting bits from binary data, NOT decimal data.