button

In this experiment, we need to control led on or off using a button. in arduino, the program determine whether led on or not according to the button status.

To complete this experiment, you need a arduino board, a led, a button.

attach led to arduino port D13, attach button to arduino port D5.

ArduBlock program:
07

now, you can control led by the button.
7

6,199 total views, 5 views today

Leave a comment