An open API service indexing awesome lists of open source software.

https://github.com/32teeth/wiicontroller32u4

A Wii Extension
https://github.com/32teeth/wiicontroller32u4

Last synced: about 1 year ago
JSON representation

A Wii Extension

Awesome Lists containing this project

README

          

# WiiController32u4

`WiiController32u4` is an Arduino project that allows you to use a Wii Classic Controller as an input device for your Arduino-based projects. The code reads the button states of the Wii Classic Controller and processes them to be used in various applications.

| Top | Bottom |
|--|--|
| ![Top](https://raw.githubusercontent.com/32teeth/WiiController32u4/master/images/wii-top.png) | ![Bottom](https://raw.githubusercontent.com/32teeth/WiiController32u4/master/images/wii-bottom.png) |

## Features

- Supports all buttons on the Wii Classic Controller
- Reads and processes analog stick positions
- Configurable pin mappings for the buttons
- Simple integration with other Arduino projects

## Hardware Requirements

- Arduino board (e.g., Arduino Leonardo)
- Wii Classic Controller
- Necessary wiring to connect the Wii Classic Controller to the Arduino

## Software Requirements

- [Arduino IDE](https://www.arduino.cc/en/software)
- [Wire Library](https://www.arduino.cc/en/Reference/Wire) (included with Arduino IDE)

## Pin Configuration

The following table shows the pin configuration for the Wii Classic Controller buttons:

| Button | Arduino Pin |
|--------------|-------------|
| D-PAD LEFT | A3 |
| D-PAD RIGHT | A2 |
| D-PAD UP | A4 |
| D-PAD DOWN | A5 |
| A BUTTON | 4 |
| B BUTTON | 6 |
| X BUTTON | 10 |
| Y BUTTON | 13 |
| L BUTTON | 9 |
| R BUTTON | 12 |
| MINUS BUTTON | A0 |
| PLUS BUTTON | 5 |
| HOME BUTTON | A1 |
| ZL BUTTON | 8 |
| ZR BUTTON | 2 |

## Usage

1. Clone or download the repository to your local machine.
2. Open the `wcc.ino` file in the Arduino IDE.
3. Connect the Wii Classic Controller to your Arduino board as per the pin configuration.
4. Upload the code to your Arduino board.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes