Before you get started check out our Getting started with Node guide.
To get started open a command window in a code directory and type:
git clone https://github.com/WootingKb/wooting-analog-example.git
After you have the project run:
You’re now ready to run the examples.
In this example we use the “wooting_read_full_buffer” function to read all the keys that are being pressed at the same time. Keys in the buffer are indexed with a scan code instead of the matrix index. The parsing is left up to the application. See below image for an overview of the scan codes.
To get an idea of what the result looks like run
Now press up to 16 keys on your keyboards and see all the values flowing in.
When you disconnect the keyboard you can see the disconnect message flashing by. You will also see -1 being logged to indicate something is wrong.
The structure of the program is the same as the basic example. The explanation is left up to the code and comments. If you have questions don’t hesitate to jump on our discord!