- Now run the code:
Space Invaders with XinaBox and Raspberry Pi
Using the Capacitive Touch xCHIP we can play space invaders with the OD01 and Raspberry Pi.
By using the XinaBox xCHIPs we eliminate the need for soldering, wiring or any specific hardware knowledge. This project demonstrates how to play Space Invaders on a RaspberryPi wih an OLED display and Capacitive Touch panel
This video shows how the hardware is clicked together
Step 1: Preparation
- Assemble the hardware as shown in the video above
- Install the LUMA OLED library, by following these instructions: https://luma-oled.readthedocs.io/en/latest/intro.html and https://github.com/rm-hull/luma.oled.
Step 2: Modify invaders.py example
- The attached code is the complete code with modification. It has only been modified at the beginning with this code:
- And in the end with this code: