声音#
介绍#
VEX 123 机器人可以通过其内置扬声器发出声音。声音模式会播放预设的音效。
以下是所有方法的列表:
动作——播放机器人发出的声音。
play— Play one of the robot’s built-in sounds.
行动#
play#
play plays one of the robot’s built-in sounds.
Usage:
robot.sound.play(sound)
范围 |
描述 |
|---|---|
|
要播放的声音。 |
声音名称 |
播放声音 |
|---|---|
|
|
|
|
|
|
|
播放上方声音列表中的随机声音。 |
# Play the doorbell sound
robot.sound.play(DOORBELL)