These examples are using HIDAPI to communicate with Joycon. You will need to pair and connect your Joycon with Bluetooth:
- Open Bluetooth
- Press and hold the button between
SL
andSR
to make Joycon discoverable - Actively pair and connect
This example connects to the Joycon and do nothing.
This example gets the colors of your Joycon, including the button color and the grip color.
This example controls the four lights on the left/right side of Joycon.
This example receives IMU data from Joycon, and maps the x-axis of the gyroscope to a 3D cube.
This example sends the rumble data to Joycon, in order to play a piece of music.