You can build the firmware on the command line or using the Arudino IDE.
Using the command line is the easiest way to build the firmware—the build scripts can install a local, self-contained copy of the dependencies and libraries, and support building on both macOS and Linux. This is the mechanism used in CI so builds should match exactly what’s shipped.
Install the dependencies:
scripts/install-dependencies.sh
Build:
scripts/build-firmware.sh
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json to the additional boards manager URLs in the Arduino preferences.Install the ‘TinyUSB_Mouse_and_Keyboard’ library using a symlink:
git submodule update --init
ln -s \
"$(pwd)/firmware/dependencies/TinyUSB_Mouse_and_Keyboard" \
~/Documents/Arduino/libraries/
Run xev on the remote computer to check what events the TinyBoard dongle is sending.
The Mac app relies on accessibility permission to capture keyboard and mouse events. When switching between debug and release apps, it’s necessary to manually remove the old app, and re-add the new one.
To test the permission request flow, it’s necessary to reset the existing permissions for TinyBoard as follows:
tccutil reset Accessibility uk.co.jbmorley.tinyboard.apps.appstore
Note
You might need to reboot to ensure this has taken.