wiiclassic¶
CircuitPython library for the Nintendo Wii Classic Controller
Author(s): John Furcean
Implementation Notes¶
Hardware:
Wii Classic Controller http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Classic_Controller
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
wiiclassic.WiiClassic(i2c, address=82)¶ Class which provides interface to the Nintendo Wii Classic controller.
Return current pressed state of the A button
Return current pressed state of the B button
Return current pressed state of the Home button
Return current pressed state of the Select/Minus button
Return current pressed state of the Start/Plus button
Return current pressed state of the X button
Return current pressed state of the Y button
Return current pressed state of the Zl button
Return current pressed state of the Zr button
-
property
dpad_down¶ Return current pressed state of D-pad down
-
property
dpad_left¶ Return current pressed state of D-pad left.
-
property
dpad_right¶ Return current pressed state of D-pad right
-
property
dpad_up¶ Return current pressed state of D-pad up.
-
property
joystick_left¶ Return tuple of current left joystick position.
-
property
joystick_right¶ Return tuple of current right joystick position.
-
property
trigger_left¶ Return reading left trigger position
-
property
trigger_right¶ Return reading right trigger position