void setup() {
// put your setup code here, to run once:
pinMode(a, INPUT);
pinMode(b, OUTPUT);
}
void loop() {
if (a == HIGH)
{
digitalWrite(b, HIGH);
delay(2000);
}
else
{ digitalWrite(b, LOW);
}
}
This is my code...i want to make pin 13 turns On,when pin 53 is get 5V but it's not working.The controler is Mega 2560. I will be glad if someone can help me.Thanks!