13
LED Effects
1. Set (all) LED blinks (2) times/s
(1) Description: Set the flash rate for LEDs
(2) Type: Settings block
(3) Example: Configure reverse light
This will set the rear LED of the chassis to flash red four times per second when RoboMaster EP CORE reversing.
Python API:
Function: led_ctrl.set_flash(armor_enum, frequency)
Parameters:
● armor_enum(enum):
■rm_define.armor_all
■rm_define.armor_bottom_front
■rm_define.armor_bottom_back
■rm_define.armor_bottom_left
■rm_define.armor_bottom_right
■rm_define.armor_top_left