ESP32Wiimote is an Arduino library for ESP32 devices, that connects over Bluetooth with a Wii remote (Wiimote), and its optional connected Nunchuk.
This fork has the following improvements:
- better output in example
- optional accelerometer read-out of Wiimote itself
On the ESP32, it reports easily at 100Hz:
- all regular button presses (A/B/C/Z/1/2/-/Home/+/D-Pad)
- the 3-dimensional acceleration/orientation of both Wiimote and Nunchuk
- the analog joystick of the Nunchuk
- ESP32 board (any)
- Arduino IDE (Version >= 1.8.5)
- Wii Remote (RVL-CNT-01)
- Wii Nunchuk (optional)
- Download the zip file.
- Move the zip file to your libraries directory.
- In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library.
- Select the zip file.
A full example can be found at ESP32WiimoteDemo.ino
- Caution: the accelerometers report a lot of data
- This can get filtered/prevented by using 'add filter(ACTION_IGNORE,...)'
- The reports from the analog joystick of the Nunchuk can als be configured for larger minimal steps
No need to pair the controller over Bluetooth. Just do:
- To connect, press the 1 and 2 buttons on Wii Remote
- The LED1 will be on when they have finished connecting
see LICENSE.md