This is the code that runs my tetris table. It's just a Raspberry Pi, some neopixels and a table I made. It's written in python and uses pygame for some parts. There is also a basic emulator using pygame for testing.
It's all written in python and licence under GPL v3 as per the COPYING file. Copyright John Cooper 2016.