Untitled

mail@pastecode.io avatar
unknown
plain_text
13 days ago
536 B
11
Indexable
Never
#define LEDPIN 13

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LEDPIN as an output.
  pinMode(LEDPIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LEDPIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(100);                      // wait for a second
  digitalWrite(LEDPIN, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);                      // wait for a second
}
Leave a Comment