Demo entry 6769767

Blink

   

Submitted by anonymous on Nov 08, 2018 at 02:58
Language: Arduino. Code size: 407 Bytes.

int led = 12;

void setup()
{
  // initialize digital pin led (declared above) as an output.
  pinMode(led, OUTPUT);
}

// the loop function runs forever
void loop()
{
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                     
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).