表情符号#
介绍#
VEX AIM 编程机器人配备了基于屏幕的表情符号显示屏,可以显示各种表情来表达情绪或状态。以下是可用方法列表:
show_emoji– Displays an emoji facing forward, left, or right.hide_emoji– Clears the emoji from the screen.
行动#
show_emoji#
show_emoji displays an emoji on the robot’s screen, with an optional direction to face. The emoji will appear over any text or drawn images on the screen.
Usage:robot.screen.show_emoji(emoji, direction)
参数 |
描述 |
|---|---|
|
其中一个表情符号(如下所示)。 |
|
Optional. The direction the emoji is facing on the screen. |
|
|
|
|
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Show two opposite emotions
robot.screen.show_emoji(CONFIDENT)
wait(2, SECONDS)
robot.screen.show_emoji(FRUSTRATED)
# Show an emoji facing three different directions
robot.screen.show_emoji(EXCITED, LOOK_LEFT)
wait(2, SECONDS)
robot.screen.show_emoji(EXCITED, LOOK_FORWARD)
wait(2, SECONDS)
robot.screen.show_emoji(EXCITED, LOOK_RIGHT)
hide_emoji#
hide_emoji clears the emoji displayed on the robot’s screen.
Usage:robot.screen.hide_emoji()
参数 |
描述 |
|---|---|
该方法没有参数。 |
# Show an emoji for 2 seconds
robot.screen.show_emoji(THINKING)
wait(2, SECONDS)
robot.screen.hide_emoji()



































