106
(3) Example: Configure HP level
The gimbal LEDs indicate the current HP level of the robot; 8 LEDs indicates full HP.
When any point on the armor is hit, the robot’s HP reduces by 1; when the HP level drops to 0, all LEDs will
turn off and the robot will stop moving.
Note:
Event blocks have the highest priority and contain programs where main function will pop out and begin to
run when certain conditional statements are met, regardless of the main function’s current status.