Skip to content

Arduino library to control Wii Remote expansion devices.

License

Notifications You must be signed in to change notification settings

jlebunetel/WiiExpansions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WiiExpansions

Arduino library to control Wii Remote expansion devices.

Features

  • Provide an interface to use Wii Remote expansion devices such as :
    • Nunchuks;
    • Classic Controlers.

Getting started

Download this repository and unzip it into the Arduino libraries folder on your computer. You should rename the folder WiiExpansions-master in WiiExpansions.

Connexions

Wii Remote expansion devices use I2C as transportation protocol. Simply connect it to Arduino through A4 (SDA) and A5 (CLK) pins :

nunchuk-arduino-connect

Simple example

#include <WiiExpansions.h>

// WiiNunchuk instance creation
WiiNunchuk nunchuck;

void setup() {
  // Nunchuck initialization
  nunchuck.init();
}

void loop() {
  // nunchuck update
  nunchuck.read();

  if(nunchuck.A.isPressed()){
    // do something when the button A is pressed
  }
}

Contributing

If you'd like to contribute, please raise an issue or fork the repository and use a feature branch. Pull requests are warmly welcome.

Licensing

The code in this project is licensed under MIT license. See the LICENCE file for details.

Contributors

About

Arduino library to control Wii Remote expansion devices.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages