Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 380 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 380 Bytes

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