Simple snake game on Raspberry PI pico

Piao, Ran
1 min readJun 4, 2023

--

I was rummaging through my batteries and came across this lovely Raspberry PI pico development board, a brand new one though I forgot how I got them in the first place… This was just when I saw that there was an open source project related to pico. Then an interesting idea came to my mind — — to use it to develop a mini-game console.

So I implemented a simple snake game on Raspberry PI.

Preparatory work:

A LED screen

A Raspberry pico board

ARM-2D library: There are many GUI lib, but on constrained devices, clean code is definitely the best option.

Result:

You can browser the code here. The main work of the code is arm_2d_scene_0.c.

This isn’t a best practice, it’s just a trial work, and I’ll be using them later to complete a grid game engine. Watch. I’ll cover design and implementation in a later blog (but only if I finish my master’s thesis).

--

--