Cross-firmware controllers for the Framework Laptop 16 LED matrix module using WebHID and Web Serial APIs
- FrameworkComputer/inputmodule-rs (Out-of-box default)
- vddCore/sparkle-fw16
- sigroot/FW_LED_Matrix_Firmware
If you maintain another firmware or a fork, please open an issue or submit a PR!
npm install led-matrix-controllers<script type="importmap">
{
"imports": {
"led-matrix-controllers": "https://esm.sh/led-matrix-controllers@latest"
}
}
</script>// Controllers for specific firmware
import { DefaultController, SigrootController, SparkleController } from 'led-matrix-controllers';
const controller = new DefaultController();
await controller.connect();
await controller.draw( /* 34x9 array of arrays of 0 to 1.0 */ );import { HardwareControllerFactory } from 'led-matrix-controllers';
// connect to device
const serialController = await HardwareControllerFactory.detectSerial();
const hidController = await HardwareControllerFactory.detectHID();- Node.js (v18 or later)
Setup development environment
npm installBundle (for locally testing minified/non-ESM builds)
npm run buildLint
npm run lint
Lint & Fix
npm run lint:fix