Eunice Blink LED

Made by yuany4

complete the LED Blink Assignment for week 2

Created: October 29th, 2024

0

Intention

Make the LED light blink 

0

Process

Connected the LED to pin D2 and set it as an output in the code. Programmed it to blink with a one-second delay between each on and off cycle.

0

Outcome

The LED light blinked on for one second, then turned off, repeating this cycle continuously.

0

Reflection

I feel it fun, and I'm looking forward to connecting a sensor on my board. 

0
//Eunice Yuan's BlueEyes_BUT_Green, Oct 29th 
int ledGreen = D2; 


void setup() {


  pinMode(ledGreen, OUTPUT);

}

void loop() {

  //ON 
  digitalWrite(ledGreen, HIGH);

  // 1 Second
  delay(1000);
  
  //OFF
  digitalWrite(ledGreen, LOW);

  // 1 Second
  delay(1000);

  // And repeat
}
Click to Expand
x
Share this Project


About

complete the LED Blink Assignment for week 2