Skip to main content

CircuitPython driver for Nintento WiiMote I2C Accessory Devices

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

circuitpython-wiichuck-0.0.3.tar.gz (31.1 kB view details)

Uploaded Source

File details

Details for the file circuitpython-wiichuck-0.0.3.tar.gz.

File metadata

  • Download URL: circuitpython-wiichuck-0.0.3.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for circuitpython-wiichuck-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5d7dfce3825e8e578b6958f1cb14f7a37fc7ee569e45cff5716fcf3c284502b0
MD5 20dc9fd8bb751c588e44e7825bdfb314
BLAKE2b-256 33afd6b8e765d6c73cb5cbde9dbb3b1190060bff94971ab70edb32dec01a58cc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page