pinGPT logo
Chapter D: Hello World5/8
Chapter C

Chapter D

Print "Hello World" 💬

Learn how to display text on the screen using MicroPython.

[ pinGPT screen showing the words Hello, World! ]

1. The onboard screen

Your pinGPT has a small color screen ready to use. We talk to it through a built-in driver, so you don't need to wire anything.

2. Your first message

Paste this into Thonny and run it:

python
from machine import Pin, SPI
import st7789  # built-in display driver on pinGPT

# Initialize the onboard screen
tft = st7789.PINGPT_DISPLAY()
tft.fill(st7789.BLACK)

tft.text("Hello, World!", 10, 40, st7789.WHITE)
tft.text("- from Hamsty", 10, 60, st7789.YELLOW)

What just happened

You cleared the screen, then drew text at a specific (x, y) position in a chosen color. That's the foundation of every UI you'll ever build on this board — menus, sensor readings, game scores, even Hamsty's mood.

[ Close-up of pixels forming the text on screen ]