1.0.2 • Published 5 years ago
rasp-components v1.0.2
Some components for raspberry pi when programming in nodejs
Example
import { Button, Switch, SwitchUpDown } from "rasp-components";
const button = new Button(4);
const led = new Switch(17);
let show = false;
button.on("click", () => {
show=!show;
console.log('show', show);
show ? led.switchOn() : led.switchOff()
});