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 Parameters: color_enum (int) – The emission frequency, i.e. the number of infrared beams emitted per second, whose range is [1:8] Returns: 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 Parameters: void – None Returns: 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 Parameters: void – None Returns: 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 Parameters: void – None Returns: None Example: ir_blaster_ctrl.stop()
Example description: Stop infrared beam emission