rasp-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i rasp-components

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

36.4 kB

Total Files

27

Last publish

Collaborators

  • rapsspider