This repository contains examples of how to interface the N64 controller on the web using p5.js and a dedicated worker. Examples will be posted in the examples folder as they are created.
Download and install the N64Controller Arduino library. Upload the firmware.ino file to an Arduino Uno.
To build the JavaScript version to dist, run the following commands:
npm ci
npx tsc
Note that this code relies on the Web Serial API, and therefore will only work in Chromium-based browser environments.