int led1 = D3;
void setup() {
pinMode(led1, OUTPUT);
}
// EX 2
void loop() {
for (int i = 0; i < 5; i++) {
digitalWrite(led1, HIGH);
delay(500);
digitalWrite(led1, LOW);
delay(500);
}
delay(3000);
}
Click to Expand
0
0
Ex. 3
0
EX3 requires us to add another LED as an output. I was not sure if a small transparent component is an LED (I believe it is not). Also, I spend sometime to figure out how could I connect the two LED in parallel (instead of in sequence).
I found my difficulty mainly lies on getting familiar with the hardware parts. I feel as the circuit gets complicated, i may risk getting confused by my own network design. I also need to spend more time to learn what are the names of different electronic components.