What is LED and How to implement it?
Let’s see how we can code a basic program of LED that blinks it on and off.
Here, we are using Arduino UNO. You can define the function of pin and pin number in pinMode. Now what you want to perform on LED, that code will come in a void loop. Write code as per your specific requirements or as per video.
After writing code, go to tools and select Arduino UNO board. Then select COM as COM3. Upload your program. Before uploading, it will ask where you want to save it. Save it, and your program will start compiling. After that, it will upload.
See, your LED is ON at 13 number pin. To make it OFF, change your code accordingly.
Share a personalized message with your friends.