Source: https://mokxi.com/learn/path/build-handheld
Updated: 2026-11-20

All paths

# Build a handheld game console

Wire a color screen, buttons and sound to an ESP32-C3, one working step at a time, and finish with three games you can play.

ESP32-C3-DevKitM-1 Free 7 lessons 6 h 3 chapters 1,936 XP Maker · Advanced +250 XP

0 of 7 done

Start the course free Light up the screen Build it as a kit Retails for about $27, free on Mokxi. Lesson plan for teachers

What you will build

## 3 projects, built step by step

7 lessons in 3 chapters, about 6 hours on a simulated ESP32-C3-DevKitM-1. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Add the D-pad and buttons

Six buttons to ground, read with the chip's own pull-ups: see every press on the screen and in the serial monitor.
Open it in the simulator

Chapter 2 project

### Write a game loop

Read, update, draw, wait: a catch game at a steady forty frames a second, and how a loop keeps its own beat.
Open it in the simulator

Chapter 3 project

### The finished console

Three real games, music, a pause button and a battery gauge: everything from the path in one handheld you can play.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Screen and buttons

Wire the panel and the pad, and see every press on the glass.

Open 189 XP

### Light up the screen

Wire a 2.4 inch color TFT to an ESP32-C3 on four wires, wake it up, and paint your first title and color bars.

0 of 4 steps

Start What is in it

Project Locked 378 XP

### Add the D-pad and buttons

Six buttons to ground, read with the chip's own pull-ups: see every press on the screen and in the serial monitor.

0 of 4 steps

Chapter 2

## Make it a game

Draw a sprite, move it, and run a steady game loop.

Locked 189 XP

### Draw a sprite and move it

Turn a little text picture into pixel art, then walk it around the screen by erasing only the strip it leaves behind.

0 of 4 steps

Project Locked 378 XP

### Write a game loop

Read, update, draw, wait: a catch game at a steady forty frames a second, and how a loop keeps its own beat.

0 of 4 steps

Chapter 3

## Make it a console

Add music, a menu and a battery gauge, then play three games.

Locked 189 XP

### Add chiptune sound

A piezo on one pin plays a looping tune from tone(), and a jump sound on A cuts in without ever stopping the loop.

0 of 4 steps

Locked 189 XP

### Build the game menu

Add Start and Select, then a menu that opens a game and always finds its way back: the screens every console is made of.

0 of 4 steps

Project Locked 424 XP

### The finished console

Three real games, music, a pause button and a battery gauge: everything from the path in one handheld you can play.

0 of 4 steps

Syllabus

## Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Screen and buttons

- Light up the screen Wire a 2.4 inch color TFT to an ESP32-C3 on four wires, wake it up, and paint your first title and color bars.
- Add the D-pad and buttons Six buttons to ground, read with the chip's own pull-ups: see every press on the screen and in the serial monitor.

Chapter 2

### Make it a game

- Draw a sprite and move it Turn a little text picture into pixel art, then walk it around the screen by erasing only the strip it leaves behind.
- Write a game loop Read, update, draw, wait: a catch game at a steady forty frames a second, and how a loop keeps its own beat.

Chapter 3

### Make it a console

- Add chiptune sound A piezo on one pin plays a looping tune from tone(), and a jump sound on A cuts in without ever stopping the loop.
- Build the game menu Add Start and Select, then a menu that opens a game and always finds its way back: the screens every console is made of.
- The finished console Three real games, music, a pause button and a battery gauge: everything from the path in one handheld you can play.

Keep going

## The next course on your track

Build a handheld game console is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a handheld RPG

Make a role playing game for a handheld you wire yourself: a tile map, a hero, dialogue, turn based battles, saves, music and a quest.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

The kit for this course

### Handheld Console Kit

An ESP32-C3, a color screen, a D-pad, a piezo, two menu buttons and a battery.
Open the kit

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a handheld game console

Is Build a handheld game console free?

Yes. All 7 lessons of Build a handheld game console are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real ESP32-C3-DevKitM-1?

No. Every lesson runs on a simulated ESP32-C3-DevKitM-1 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a handheld game console take?

About 6 hours: 7 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Add the D-pad and buttons, Write a game loop and The finished console.

Where do I start?

With "Light up the screen", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
