Made by yuany4
complete the LED Blink Assignment for week 2
Created: October 29th, 2024
Make the LED light blink
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.
The LED light blinked on for one second, then turned off, repeating this cycle continuously.
I feel it fun, and I'm looking forward to connecting a sensor on my board.
//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 }