1.0.2 • Published 5 years ago

rasp-components v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

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()
});
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago