Grace Skill Dev I: Blinking LED

Made by Grace Zhu

Make an LED blink every 1 second.

Created: October 30th, 2024

0

Intention

The goal of the assignment is to learn basic circuitry components and simple codes by building a blinking LED.

0

Process

I followed the course instruction to place my circuits. When running the code, I noticed the LED on my Particle board had different states and looked like it went through connecting to the internet. After all the flashing was over, my LED blinked as I planned with the code.

0

Outcome

I successfully made my LED blink every 1 second.

0

Reflection

I learned all the components used in this circuit and how to modify and run codes on Particle.

0
int ledPin = D2; 


void setup() {

  pinMode(ledPin, OUTPUT);

}


void loop() {
 
  digitalWrite(ledPin, HIGH);
  delay(1000);
  digitalWrite(ledPin, LOW);
  delay(1000);

}
Click to Expand
x