Snake Slithers Onto Raspberry Pi Pico

The worst thing about modern smartphones and handheld videogame consoles is the lack of Snake. If you can’t play a quick game of Snake during meetings, then what’s the point? Enter Hari Wiguna, who has, via Hackaday, got the game running on a Raspberry Pi Pico and a tiny OLED screen.

Wiguna’s code is fully available on Github for anyone who fancies having a go themselves. Along with the Raspberry Pi Pico, Wiguna used an I2C 128 x 64 OLED screen and five buttons - four for movement and the fifth to start a new game. 

Article continues below

The snake’s slithery undulating movement is a fine showcase for both the Pico’s abilities and Wiguna’s coding ability - and the design drawings documented on the site give an insight into the amount of work it takes just to chase apples across 8,000 pixels.

Ian Evenden
Freelance News Writer