Something went wrong. Try again.
Opensource firmware for NRF52840 Pro Micro that copycats the Steam Controller 2 Puck and adds an Xbox and Switch mode
Something went wrong. Try again.
12345678910111213141516// WebUSB configuration channel: a vendor interface present in EVERY mode so the browser config panel can// read/set runtime tunables. Binary framed protocol:// host->dev: 0x01 GET -> reply status blob// 0x02 <field> <value> SET one byte field (see the switch in webusb_config.cpp)// 0x03 <mode> switch USB mode (0..6): persist + reboot// 0x0B reboot into serial DFU (adafruit-nrfutil)// 0x0C reboot into UF2 bootloader (USB mass storage)// dev->host: 0xA5 <len> <payload> status blob (mode/tunables/link state/rates)// No setLandingPage() on purpose -- it would pop a Chrome "open <url>?" notification on every plug-in.#pragma once#include <Adafruit_TinyUSB.h>
extern Adafruit_USBD_WebUSB usb_web;
void webusbPoll(); // drain host commands + reply; call every loop()