wiichuck¶
CircuitPython driver for Nintento WiiMote I2C Accessory Devices
Author(s): Carter Nelson, John Furcean
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class wiichuck.WiiChuckBase(i2c, address=82, i2c_read_delay=0.002)¶
Base Class which provides interface to Nintendo Nunchuk Accessories.
- Parameters
i2c – The
busio.I2Cobject to use.address (int, optional) – The I2C address of the device. Default is 0x52.
i2c_read_delay (float, optional) – The time in seconds to pause between the I2C write and read. This needs to be at least 200us. A conservative default of 2000us is used since some hosts may not be able to achieve such timing.
wiichuck.classic_controller¶
CircuitPython driver for Nintento WiiMote I2C Accessory Devices
Author(s): John Furcean
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class wiichuck.classic_controller.ClassicController(i2c, address=82, i2c_read_delay=0.002)¶
Bases:
wiichuck.WiiChuckBaseClass which provides interface to Nintendo Wii Classic Controller.
- Parameters
i2c – The
busio.I2Cobject to use.address (int, optional) – The I2C address of the device. Default is 0x52.
i2c_read_delay (float, optional) – The time in seconds to pause between the I2C write and read. This needs to be at least 200us. A conservative default of 2000us is used since some hosts may not be able to achieve such timing.
- property buttons¶
The current pressed state of all buttons.
- property dpad¶
The current pressed state of the dpad.
- property joysticks¶
The current joysticks positions.
- property triggers¶
The current readding from the triggers (0-31 for Pro) (0 or 31 non-Pro).
- property values¶
The current state of all values.
wiichuck.nunchuk¶
CircuitPython driver for Nintento WiiMote I2C Accessory Devices
Author(s): Carter Nelson, John Furcean
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class wiichuck.nunchuk.Nunchuk(i2c, address=82, i2c_read_delay=0.002)¶
Class which provides interface to Nintendo Nunchuk controller.
- Parameters
i2c – The
busio.I2Cobject to use.address (int, optional) – The I2C address of the device. Default is 0x52.
i2c_read_delay (float, optional) – The time in seconds to pause between the I2C write and read. This needs to be at least 200us. A conservative default of 2000us is used since some hosts may not be able to achieve such timing.
- property acceleration¶
The current accelerometer reading.
- property buttons¶
The current pressed state of all buttons.
- property joystick¶
The current joystick position.
- property values¶
The current state of all values.
wiichuck.dj_table¶
CircuitPython driver for Nintento WiiMote I2C Accessory Devices
Author(s): John Furcean
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class wiichuck.dj_table.DJTable(i2c, address=82, i2c_read_delay=0.002)¶
Class which provides interface to Nintendo Wii Classic Controller.
- Parameters
i2c – The
busio.I2Cobject to use.address (int, optional) – The I2C address of the device. Default is 0x52.
i2c_read_delay (float, optional) – The time in seconds to pause between the I2C write and read. This needs to be at least 200us. A conservative default of 2000us is used since some hosts may not be able to achieve such timing.
- property buttons¶
The current pressed state of all buttons that are not on the turntable.
- property dial¶
The current dial position.
- property joystick¶
The current joystick position.
- property slider¶
The current slider position.
- property turntables¶
The current reading from the turntable and it’s buttons.
- property values¶
The current state of all values.
wiichuck.guitar¶
CircuitPython driver for Nintento WiiMote I2C Accessory Devices
Author(s): John Furcean
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class wiichuck.guitar.Guitar(i2c, address=82, i2c_read_delay=0.002)¶
Class which provides interface to Nintendo Wii Classic Controller.
- Parameters
i2c – The
busio.I2Cobject to use.address (int, optional) – The I2C address of the device. Default is 0x52.
i2c_read_delay (float, optional) – The time in seconds to pause between the I2C write and read. This needs to be at least 200us. A conservative default of 2000us is used since some hosts may not be able to achieve such timing.
- property buttons¶
The current pressed state of all buttons.
- property joystick¶
The current joystick position.
- property strum¶
The current pressed state of strum.up and strum.down.
- property touchbar¶
The current touchbar position. Only available in the Guitar Hero World Tour Guitars
- property values¶
The current state of all values.
- property whammy¶
The current whammy position.
wiichuck.udraw¶
CircuitPython driver for Nintento WiiMote I2C Accessory Devices
Author(s): David Glaude
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class wiichuck.udraw.UDraw(i2c, address=82, i2c_read_delay=0.002)¶
Class which provides interface to Nintendo Nunchuk controller.
- Parameters
i2c – The
busio.I2Cobject to use.address (int, optional) – The I2C address of the device. Default is 0x52.
i2c_read_delay (float, optional) – The time in seconds to pause between the I2C write and read. This needs to be at least 200us. A conservative default of 2000us is used since some hosts may not be able to achieve such timing.
- property buttons¶
The current pressed state of all buttons.
- property position¶
The current pen tip position.
- property pressure¶
The current pressure reading.
- property values¶
The current state of all values.