Skip to main content

Code

int LED_PIN = 2;

void setup() {
  // put your setup code here, to run once:
  pinMode(LED_PIN,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  delay(100);
  digitalWrite(LED_PIN,HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(100);
  digitalWrite(LED_PIN,LOW);  // turn the LED off by making the voltage LOW
}