Introduction
CircuitPython driver for Nintento WiiMote I2C Accessory Devices
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Usage Example
import time
import board
from wiichuck.nunchuk import Nunchuk
nc = Nunchuk(board.I2C())
while True:
x, y = nc.joystick
ax, ay, az = nc.acceleration
print("joystick = {},{}".format(x, y))
print("accceleration ax={}, ay={}, az={}".format(ax, ay, az))
buttons = nc.buttons
if buttons.C:
print("button C")
if buttons.Z:
print("button Z")
time.sleep(0.5)
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation
For information on building library documentation, please check out this guide.
Metadata
Release files for circuitpython-wiichuck 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| circuitpython-wiichuck-0.0.3.tar.gz | 31.1 kB | Details |
Release files / circuitpython-wiichuck-0.0.3.tar.gz
| Download URL | circuitpython-wiichuck-0.0.3.tar.gz |
|---|---|
| Size | 31.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d7dfce3825e8e578b6958f1cb14f7a37fc7ee569e45cff5716fcf3c284502b0
|
|
BLAKE2b-256 checksum How to use checksums |
33afd6b8e765d6c73cb5cbde9dbb3b1190060bff94971ab70edb32dec01a58cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
|