Question.2
What will be the status of LED? (after executing the following code)
Code
#define ledPin 8
unsigned long previousMicros = 0;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
if (micros() - previousMicros >= 50000) {
previousMicros = micros();
digitalWrite(ledPin, !digitalRead(ledPin));
}
}