В момента ресурсът е наличен само на английски

How to display text on the screen of an EV3 brick with Python Pro Preview

In this tutorial, you’ll learn how to make your LEGO SPIKE hub display words or messages on its light matrix. Displaying messages can make your robot programs more interactive and easier to understand. For example:

  • A robot could show "GO" when it starts moving.

  • It could show "STOP" when it finishes.

  • It could display a player’s score in a game.

  • It could greet people with "HELLO" when it turns on.

By the end, you’ll know how to use a simple Python command to make your robot communicate by showing text.

Необходимо е да се абонирате за FLLCasts.com, за да достъпите това видео

Абонирай се

  • #2597
  • 12 Mar 2026

First, make sure you import the light matrix so Python knows you want to control it. At the top of your program, write:

from hub import light_matrix

Now you’re ready to display a message.

The command you will use is:

light_matrix.write("message")

Replace "message" with whatever phrase you want to show.

Example:

from hub import light_matrix
import runloop

async def main():
    #Greet the user
    light_matrix.write("HELLO")

runloop.run(main())