Hi i TryI tried to turn on Leda LED with my PcPC keyboard and arduino uno With Thean Arduino Uno with the letter aA.
I get the message
exit status 1 'keypressed' was not declared in this scope
exit status 1
'keypressed' was not declared in this scope
myMy code:
int led1 = 10;
void setup()
{
pinMode(led1, OUTPUT);
}
void loop()
{
if(keypressed == 'a'){
digitalWrite(led1, HIGH);
delay(500);
}
}
What is the problem ?