You are assumed to have installed the Arduino IDE, and you have acquired from early reading of the relevant documents, and the lecture how to write some basic programs.
In this experiment, you will write programs to make one LED blink, to make 8 LEDs turn on, one at a time, at different rates, and controlled by the status of a switch, and implement the guess the pattern game using two switches and 2 two-bit numbers.
Use an LED protected by a resistor (100 to 470Ω) and write a program to make the LED blink once a second. Then modify the program to make it blink 5 times per second.
In this part you set a number in your program to be matched by a user through the utilization of two switches, which when read by the program as the equivalent in binary to the decimal number stored in the program, will lead to an LED OFF if there is a match, and ON if it does not match. Note that the decimal number must be between 0 and 3.
In your lab report, describe the most relevant parts of your source codes.