evolution
 |  0          it  #228
Semplice programma arduino che fa lampeggiare un led casualmente con la funzione random
// second program by Explosive Dynamic Lab
// random led blink
void setup(){
  pinMode(12,OUTPUT);
}

void loop(){

  int number = random(15);

  for(int a = 0; a < number; a++)
  {
    digitalWrite(12,HIGH);
    delay(50);
    digitalWrite(12,LOW);
    delay(50); 
  }
  delay(1000);
}


This website uses cookies, even third part cookies: clicking on OK, continuing the navigation or interacting with the page you consented to the use of cookies. Information OK