Make an LED Blink
By following the instruction, I successfully connect a basic circuit and then wrote the code to make the led blink. Here is the circuit and code.
Instead of passing a HIGH
Or LOW
string pass the number of times you would like it to blink. Set the function to blink that number of times. Finally once it has completed all of the blinking it should turn the LED off. I used the toInt function to translate string command to Int, and used the for loop to enable the led blink the same time as called.
I finished the blink the leds exercises easily because I can find that I only need to make a change of the blink time and write simple for loops. I spent more time setting up different command to call the leds' state during the connected led exercises, because I need to look up additional functions to define the variable through the command. At last, I was able to understand each step of connecting the circuit and the meaning of code, which is very helpful for me to continue learning more skills.
You can upload files of up to 20MB using this form.