Lesson 40 – Arduino C;C++ Looping Multiple Digital Write Output

115 Просмотры
Издатель
In one of the earlier lessons I showed you how the Loop function works in C;C++ Programming. Here we will apply the same principle. In this project, we will discuss the process to blink three LEDs using for loop. The three LEDs will light up one after the other.
We will connect the three LEDs to pins 13, 8, and 4 of the Arduino board. The limiting value of resistance should be between 220 and 330 ohms to set the optimal current through the LEDs.
The required resistance is enough to light up an LED without damaging the board and the LED. We will turn the LED ON/OFF individually.
Lets write some code to for the first LED is to blink one time, and then the second LED will blink two times, the third LED will blink three times
Категория
Язык программирования C++
Комментариев нет.