A MicroPython module for interfacing with Nintendo Nunchuk controllers.
Allows for reading of:
- Joystick position
- Button states
- Accelerometer state
Use mip
(see MicroPython Package management):
> mpremote mip install github:mattytrentini/micropython_nunchuk
See examples/nunchuk_simpletest.py
.
Full example:
> mpremote mount . run examples/nunchuk_simpletest.py
Local directory . is mounted at /remote
Scan results: [82]
joystick = 128,128
accceleration ax=292, ay=527, az=584
joystick = 128,128