Pieces
The seven shapes four squares can make, each a list of cells in a box. Make them fall, steer them, and stop them on the floor and on each other.
Open it in the simulatorBuild a complete falling-blocks game on two 8x8 LED matrices: a field of sixteen bytes, seven pieces, quarter turns, line clears and levels.
0 of 6 done
6 lessons in 3 chapters, about 5 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.
The seven shapes four squares can make, each a list of cells in a box. Make them fall, steer them, and stop them on the floor and on each other.
Open it in the simulatorA level every 4 lines, each 15 percent faster, timed with millis() so the stick never feels sticky. Then the moment every game needs: game over.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
Sixteen bytes on two matrices, and seven shapes that fall.
Two 8x8 LED matrices make one field 8 wide and 16 tall. Keep it as sixteen bytes, drive it over three wires, and draw on it with the joystick.
0 of 5 steps
The seven shapes four squares can make, each a list of cells in a box. Make them fall, steer them, and stop them on the floor and on each other.
0 of 6 steps
Turn the pieces, clear the lines and speed it up.
A quarter turn is a swap and a flip: (x, y) becomes (n - 1 - y, x). Turn every piece, find the one that never changes, and kick off the walls.
0 of 6 steps
Find full rows with one comparison, pull everything above them down, and score more for more rows at once. Two puzzles, then free play.
0 of 5 steps
A level every 4 lines, each 15 percent faster, timed with millis() so the stick never feels sticky. Then the moment every game needs: game over.
0 of 6 steps
Put it all together into a game worth sharing.
The whole game: a title screen, pieces from a shuffled bag, a lock click, pause, a best score, and it is yours to change and share.
0 of 7 steps
All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Build Tetris on an LED matrix is part of the maker track, a ladder of courses from zero to expert.
A frequency counter, a capacitance meter, a resistor tester, a battery tester and a DAC signal generator, then all five in one LCD box.
Open the next courseFollow 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 trackEvery lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
An Uno, an LED matrix (8x8), a thumb stick and a buzzer: a falling-blocks game you build yourself.
Open the kitPick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. All 6 lessons of Build Tetris on an LED matrix are free and run in your browser, with nothing to install and no parts to buy before you start.
No. Every lesson runs on a simulated Arduino Uno R3 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.
About 5 hours: 6 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.
Each chapter ends in a project that puts it together: Pieces and Speed levels.
With "The board grid", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.