Lego Mario Controller Save

A small python script that connects to a Lego Mario figurine via BLuetooth LE and emits keystrokes for different actions.

Project README

Lego Mario Controller

This is a small python script that connects to a Lego Mario toy and emits keystrokes for certaim movements of the figurine. I used it as a controller for Super Mario Brothers (Video).

I only tested it on MacOS 10.15 - it may or may not work on other opererating systems. I had to run the NES emulator in a Linux VM (Parallels or VirtualBox) because the native emulators on MacOS did ignore the virtual keypresses from python.

Unfortuately I have no time to support this but I'll accept pull requests.

Dependencies

You need python3 and some packages that can be installed from the project root with pip3 install -r requirements.txt

Running it

python3 src/mario.py

Customization

The keys can be configured in the top of the file src/mario.py. For special keys use the ones defined here (e.g. key.enter)

Open Source Agenda is not affiliated with "Lego Mario Controller" Project. README Source: RickP/lego_mario_controller
Stars
95
Open Issues
2
Last Commit
3 years ago

Open Source Agenda Badge

Open Source Agenda Rating