LED Programming¶
-
-
Setup¶
This lesson is about programming an LED strip using a microcontroller, such as an Arduino Uno. Wokwi is an online emulator that will substitute a real board.
In Arduino programming, you can can define two methods: setup
and loop
. The first runs once when the microcontroller turns on and the second repeats infinitely. For our purposes, loop
is enough.
Here is a Wokwi instance that has the necessary code set up with 100 LED lights displaying a rainbow.
+