3.4. Blaster

ir_blaster_ctrl.set_fire_count(count)
Description:Sets the emission frequency of infrared beams, i.e., the number of infrared beams emitted per second
参数:color_enum (int) – The emission frequency, i.e. the number of infrared beams emitted per second, whose range is [1:8]
返回:None
Example:ir_blaster_ctrl.set_fire_count(4)
Example description:
 Set the emission frequency of infrared beams to 4
ir_blaster_ctrl.fire_once()
Description:Instructs the blaster to emit a single infrared beam
参数:void – None
返回:None
Example:ir_blaster_ctrl.fire_once()
Example description:
 Instruct the blaster to emit a single infrared beam
ir_blaster_ctrl.fire_continuous()
Description:Instructs the blaster to continuously emit infrared beams
参数:void – None
返回:None
Example:ir_blaster_ctrl.fire_continuous()
Example description:
 Instruct the blaster to continuously emit infrared beams
ir_blaster_ctrl.stop()
Description:Stops infrared beam emission
参数:void – None
返回:None
Example:ir_blaster_ctrl.stop()
Example description:
 Stop infrared beam emission