Hi
I know the question sounds simple. But
I want to know if it is possible to know when a led is turn on.
int LED=13;
void setup() {
pinMode(LED, OUTPUT);
digitalWrite(LED, HIGH);
}
void loop()
{
digitalWrite(LED, LOW);
}
In this example I am turning of the LED. But I will like that this line digitalWrite(LED, LOW); only takes place when the led is on.
Any ideas?