As you can see in the circuit diagram the rest of the setup is same as the previous circuit diagram except that it has got switches connected with its port 2. In the figure we can clearly see that the switches are connected to:
Switch 1 - Port 2.0
Switch 2 - Port 2.1
Switch 3 - Port 2.2
Switch 4 - Port 2.3
There other end is connected to VCC or +5V. So when the switch is pressed, the input of ports will receive the logic 1 . We will program it such a way that it will glow the led in the pattern depending upon the switches pressed. Now jump to the next chapter to continue practical tutorial on breadboard.
No comments:
Post a Comment
Stuck Somewhere ? Comment Your Queries and Experts will Guide You.