In function 'void loop()': 17:6: error: expected ';' before 'digitalWrite' 23:5: error: expected ';' before 'digitalWrite' exit status 1

Hi,

if(i%2==0)
{ if(digitalRead(13)==0)
digitalWrite(3,HIGH);
else (digitalRead(13)==1)
digitalWrite(3,HIGH);
}

An if.. and few { and } missing there.

@achilies018 what era you trying to do with your code?

Tom.... :smiley: :+1: :coffee: :australia: