Skip to content

Files

Latest commit

e8a1dd6 · Mar 28, 2023

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 30, 2021
Mar 31, 2022
Aug 1, 2021
Jul 30, 2021
Aug 2, 2021
Aug 18, 2021
Aug 2, 2021
Aug 2, 2021
Jul 31, 2021
Jul 31, 2021
Aug 2, 2021
Mar 28, 2023
Mar 31, 2022
Feb 11, 2022
Aug 2, 2021
Jan 19, 2022
Aug 2, 2021
Jan 21, 2022

Examples of libjoycon

These examples are using HIDAPI to communicate with Joycon. You will need to pair and connect your Joycon with Bluetooth:

  1. Open Bluetooth
  2. Press and hold the button between SL and SR to make Joycon discoverable
  3. Actively pair and connect

Hello World

This example connects to the Joycon and do nothing.

Get color

This example gets the colors of your Joycon, including the button color and the grip color.

Player Light

This example controls the four lights on the left/right side of Joycon.

IMU Mapping

This example receives IMU data from Joycon, and maps the x-axis of the gyroscope to a 3D cube.

Play MXBC

This example sends the rumble data to Joycon, in order to play a piece of music.