By Kevin McAleer, 4 Minutes
Page last updated November 21, 2026
![]()
You started with a blank grid and finished with a robot face that blinks, glances around, fills the screen and dozes off when the lights go down.
![]()
Along the way you:
.spr file and exported it as a MicroPython module, a GIF and a sprite sheetframebuf| Idea | In one line |
|---|---|
| Sprite | A small picture you draw once and place anywhere |
| Frame | One drawing in an animation |
| 1-bit | Each pixel is on or off, eight to a byte |
| Frame buffer | A screen held in memory. Draw first, then show() |
| Blit | Copy a small buffer onto a big one |
| Animation loop | Clear, draw, show, wait |
| Frames as ingredients | Your code decides the order and timing, not the editor |
| Same interface | If two screens offer the same functions, your code runs on both |
That last one reaches well beyond screens. Writing code against a small, shared set of functions is what lets you test on a simulator today and run on hardware tomorrow.
By the end you have a tidy little toolkit in robot-face:
| File | What it is |
|---|---|
eye.spr |
The sprite, for editing |
eye.py |
The sprite as a module |
simscreen.py |
The simulated screen |
myscreen.py |
Picks a real or simulated screen |
spr.py |
Reads .spr files on the board |
robot_face.py |
The finished face |
Keep the three helper files. They’ll work in any project that needs a screen.
If you’d like to compare with ours, or you got stuck, download the finished set: robot-face.zip.
shift from lesson 10Draw something, put it on a screen and show us. We’d love to see your robot’s face.
Quick quiz 1 of 3
Which file would you open to change what the eye looks like?
Quick quiz 2 of 3
What is the correct order of an animation loop?
Quick quiz 3 of 3
Why did the course build SimScreen to look like a real display driver?
You can use the arrows ← → on your keyboard to navigate between lessons.
Comments