RaphaelWimmer / wiimote.py

Wiimote wrapper in pure Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wiimote.py

Wiimote wrapper in pure Python

Usage:

import wiimote
btaddr = wiimote.find()[0]
wm = wiimote.connect(btaddr)
wm.leds[3] = True
wm.rumble()
print(wm.accelerometer, wm.ir )
wm.buttons.register_callback(print)
wm.speaker.beep()  # sounds awful

wiimote_node.py contains a Wiimote node for PyQtGraph:

python3 wiimote_node.py # runs demo

About

Wiimote wrapper in pure Python


Languages

Language:Python 100.0%