Emoji#
Introducción#
El robot de programación VEX AIM puede mostrar emojis en su pantalla. Los emojis se pueden usar para mostrar las emociones del robot, indicar su estado o proporcionar información mientras se ejecuta un proyecto.
Only one emoji can be shown at a time. A new show_emoji method replaces the emoji currently shown on the screen. Use hide_emoji to clear the emoji from the screen.
A continuación se muestra una lista de todos los métodos:
Acciones: Mostrar u ocultar un emoji.
show_emoji— Displays an emoji on the robot’s screen.hide_emoji— Clears the emoji from the screen.
Comportamiento#
show_emoji#
show_emoji displays an emoji on the robot’s screen. The emoji appears over any text or drawn images on the screen.
Usage:
robot.screen.show_emoji(emoji, direction)
Parámetro |
Descripción |
|---|---|
|
El emoji que se mostrará. Consulta las opciones de emojis a continuación. |
|
Optional. The direction the emoji faces on the screen:
|
|
|
|
|
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ejemplos
# Show two different emotions
robot.screen.show_emoji(CONFIDENT)
wait(2, SECONDS)
robot.screen.show_emoji(FRUSTRATED)
# Show one emoji facing 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 from the robot’s screen.
Usage:
robot.screen.hide_emoji()
Parámetros |
Descripción |
|---|---|
Este método no tiene parámetros. |
Ejemplo
# Show an emoji for 2 seconds
robot.screen.show_emoji(THINKING)
wait(2, SECONDS)
robot.screen.hide_emoji()



































