Need help

Need help please, i am new in arduino, my sketch is working fine in arduino uno base atmega 328 ,but not working in attiny 13 or 44 or 85 what should i do, i just use 2 inpput and 2 output pin for my project, i want to use small ic for litle space, thanks Code is

int inRl1 = A0; int inRl2 = A1; int dirSw = A2; int homeSw = A3;

void setup() { Serial.begin(9600);

pinMode (inRl1, OUTPUT); pinMode (inRl2, OUTPUT); pinMode (dirSw, INPUT); pinMode (homeSw, INPUT);

digitalWrite(inRl2, HIGH); digitalWrite(dirSw,LOW);

}

void loop() { if( digitalRead(dirSw) == HIGH){ digitalWrite(inRl1, LOW); delay(4000); digitalWrite(inRl2, HIGH);

} if( digitalRead(homeSw) == HIGH){ digitalWrite(inRl2, LOW); delay(4000); digitalWrite(inRl1, HIGH);

}

}

Please explain exactly what you mean by "not working in attiny 13 or 44 or 85".

Like Serial.begin(9600); was not declare in this scope, i was delete, and when i wiring it jas one coman is work ( digitalWrite(dwRly, HIGH);

Other command is not work, thanks

AsMJje: i was delete, and when i wiring it jas one coman is work ( digitalWrite(dwRly, HIGH);

That line doesn't exist in the code you posted. We can't help you with code we can't see.

That line alone couldn’t work because “dwRly” was never defined…