This library is a TypeScript implementation of the JACDAC (Joint Asynchronous Communications; Device Agnostic Control) protocol.
- JACDAC debugger (requires browser supporting WebUSB)
Simply open the sample from disk in a WebUSB enabled browser.
/samples/device-list.html- displays the current list of devices
Use chrome://device-log/ to see the WebUSB log on your device.
Builds require node and npm, these must be installed prior to use.
Within jacdac-ts there are a number of sub projects that can be optionally built.
jacdac– the core files for the jacdac control layer
webusb- a webusb interface for consuming messages via usb from a JACDAC device.
debug- debug views for decoding packets from services, and the debug service used to introspect packets sent on the bus.
node- a node interface to ajcdac-ts that uses Web sockets to simulate the jacdac bus.
samples- simple samples that use the deployed jacdac libraries to operate.
tools- project folders for the web based JACDAC debugger and device configurer.
To build the entirety of jacdac-ts, run the following build steps from the root directory:
npm run build
Node test library
To build and run the node based jacdac test suite, run the following build steps from
npm install npm run build npm run tests
npm install --save @jacdac/jacdac-ts
npm install npm version patch git push origin master npm run build npm publish
Use in Browser
Various services provide a CDN cache over NPM.
// latest version https://cdn.jsdelivr.net/npm/@jacdac/jacdac-ts/built/jacdac.js // specific version (0.0.6) https://cdn.jsdelivr.net/npm/@email@example.com/built/jacdac.js