KaroLaunonen/zig-pinball-controller
Raspberry Pi Pico based pinball controller (buttons, nudge, plunger, leds)
20159fa13ded6c8581644423f48a6810aa535b0d
A Raspberry Pi Pico-based pinball controller for use with Visual Pinball X that uses MicroZig and the Raspberry Pi Pico's USB HID, as well as I2C and GPIO input/output. The main goal of this project is to provide a customizable and extensible pinball controller using Zig programming language.
Note, this project is for personal need and for learning Zig and MicroZig. After coding this for a while I found a proper Pinball controller project for Pico. Check out Pinscape Pico for a proper controller. If you still rather learn Zig, then welcome!
TODO
To build and run this project, you need the following:
Connect I²C LSM6DS33 board to pins GPIO4 (SDA) and GPIO5 (SCL).
Connect the flipper button to a GPIO pin on your Raspberry Pi Pico board. In this project, it's connected to GP15 (Pin 20).
Clone this repository:
git clone https://github.com/KaroLaunonen/zig-pinball-controller.git
cd zig-pinball-controller
Build the project using Zig:
zig build
This build an elf binary. If you want UF2 instead, use
zig build -Duf2=true
Karo Launonen - [email protected]
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue on GitHub. Pull requests are also encouraged.
This project is licensed under the GPL v3 License — see the LICENSE file for details.