mattytrentini / micropython_nunchuk

MicroPython driver for the Nunchuk controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

micropython_nunchuk

A MicroPython module for interfacing with Nintendo Nunchuk controllers.

Allows for reading of:

  • Joystick position
  • Button states
  • Accelerometer state

Installation

Use mip (see MicroPython Package management):

> mpremote mip install github:mattytrentini/micropython_nunchuk

Example

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

About

MicroPython driver for the Nunchuk controller

License:MIT License


Languages

Language:Python 100.0%