
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
node-controllab
Advanced tools
Node.js v22.0+ required.
npm install node-controllab --save
import ControlLab, { TouchEvent } from "../dist/index.js";
const controlLab = new ControlLab("/dev/tty.usbserial-AC018KSE"); // Change this to your serial port
const INPUT_PORT = 1;
const OUTPUT_PORT = "B";
(async () => {
await controlLab.connect();
console.log("Connected to Control Lab!");
controlLab.setTouchSensor(INPUT_PORT); // Set input port 1 to a touch sensor
controlLab.on("touch", ({ event }) => {
if (event === TouchEvent.Pressed) {
console.log(`Starting motor on output port ${OUTPUT_PORT} at power 8`);
controlLab.setPower(OUTPUT_PORT, 8); // Drive motor on port A forward at full power (range is -8 to 8)
} else if (event === TouchEvent.Released) {
console.log(`Stopping motor on output port ${OUTPUT_PORT}`);
controlLab.setPower(OUTPUT_PORT, 0); // Stop motor on port A
}
});
})();
More examples available in the examples directory.
FAQs
A Javascript module to interface with the LEGO DACTA Control Lab.
The npm package node-controllab receives a total of 1 weekly downloads. As such, node-controllab popularity was classified as not popular.
We found that node-controllab demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.