聲音#
介紹#
VEX 123 機器人可以透過其內建揚聲器發出聲音。聲音模式會播放預設的音效。
以下是所有方法的清單:
動作-播放機器人發出的聲音。
play— 播放機器人內建的聲音之一。
行動#
play#
play 播放機器人內建的聲音之一。
Usage:
robot.sound.play(sound)
範圍 |
描述 |
|---|---|
|
要播放的聲音。 |
聲音名稱 |
播放聲音 |
|---|---|
|
|
|
|
|
|
|
播放上方聲音清單中的隨機聲音。 |
# Play the doorbell sound
robot.sound.play(DOORBELL)