Yahboom Omibox Robot Kit Basic Course 3.4 Button
1-1. The position of the button in the robot car
1-2. Learn how to control buttons by graphically programming
As shown in the figure above,we circled the blue wire frame with two buttons, and we can control them by programming.
In this lesson, we will learn how to use the buttons. When the red button is pressed, all the lights be lit up. When the green button is pressed, all the lights be closed.
3.Search for blocks
The following is the location of the building blocks required for this programming.
4. Combine blocks
The summary program is shown below:
After the program is uploaded, the car is powered on normally. When we press the red button, we can see that the RGB lights are lit. When we press the green button, we can see that the lights are off, as shown below:
The code of the experiment: 4.Button.rar