Node.JS wrapper for AMBX's and Philips' gaming lights.
© Koninklijke Philips N.V. All image rights reserved
Install using NPM
npm i ambx
This package uses node-usb, make sure to have libusb installed.
To create a new instance, use
import { CreateDevice, Lights } from 'ambx';
(async () => {
try {
// Create instance. Will throw if no amBX device is found
const myAMBX = await CreateDevice();
// Set the center wallwasher to red
await myAMBX.SetColor(Lights.WallCenter, 255, 0, 0);
} catch (e) {
console.log('Something went wrong:', e);
}
})();
tbd