Émoji#
Introduction#
Le robot de codage VEX AIM peut afficher des émojis sur son écran. Ces émojis peuvent servir à exprimer les émotions du robot, à indiquer son statut ou à fournir un retour d’information pendant l’exécution d’un projet.
Un seul emoji peut être affiché à la fois. La méthode show_emoji remplace l’emoji actuellement affiché à l’écran. Utilisez hide_emoji pour effacer l’emoji de l’écran.
Vous trouverez ci-dessous la liste de toutes les méthodes :
Actions — Afficher ou masquer un emoji.
show_emoji— Affiche un emoji sur l’écran du robot.hide_emoji— Efface l’emoji de l’écran.
Actes#
show_emoji#
La commande show_emoji affiche un emoji sur l’écran du robot. L’emoji apparaît par-dessus tout texte ou image dessinée à l’écran.
Usage:
robot.screen.show_emoji(emoji, direction)
Paramètre |
Description |
|---|---|
|
L’emoji à afficher. Voir les options d’emoji ci-dessous. |
|
Facultatif. Direction vers laquelle l’emoji est orienté à l’écran :
|
|
|
|
|
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Exemples
# 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 efface l’emoji de l’écran du robot.
Usage:
robot.screen.hide_emoji()
Paramètres |
Description |
|---|---|
Cette méthode ne comporte aucun paramètre. |
Exemple
# Show an emoji for 2 seconds
robot.screen.show_emoji(THINKING)
wait(2, SECONDS)
robot.screen.hide_emoji()



































