HI there,
I got some Leds and want to make blink one random at each loop/every 200ms what fonctions do I use?
There's my actual code :
int pinLed1, pinLed2;
void setup()
{
pinLed1 = 2;
pinLed2 = 4;
pinMode(pinLed1, OUTPUT);
pinMode(pinLed2, OUTPUT);
digitalWrite(pinLed1, LOW);
digitalWrite(pinLed2, LOW);
}
void loop()
{
digitalWrite(pinLed1, HIGH);
delay(200);
digitalWrite(pinLed1, LOW);
delay(200);
digitalWrite(pinLed2, HIGH);
delay(200);
digitalWrite(pinLed2, LOW);
delay(200);
}
Thanks for help (pretty urgent)