Controlling the LEDs
In this section, we will get started with testing the RGB LEDs on the Kitronik Robotics kit. There are four RGB LEDs on the chassis (highlighted in Figure 9.6). The LEDs could be used to provide a visual indication of the robot's action. We will light them up in a circular pattern.
The code sample discussed in this section is rgb_led_test.py
:
- In the Thonny IDE, create a file called
main.py
and save it to your Pico, as shown in the following figure, where the dialog appears when you click on the Save button.