Skip to content

RickP/lego_mario_controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages