js-seeed-studio-relay-board
This is a node.js package that can control and get state of the Seeed Studio Raspberry Pi Relay Board v.1.0. Inspired by the Python library for the Seeed Studio Relay Board.
Getting Started
Install :
npm install js-seeed-studio-relay-board
Usage
const SeeedStudioRelayBoard = { const rpi = // Initialize I2C controler await rpi /** * Examples **/ // Turn relay 3 ON. await rpi // Get status of relay 3. await rpi // Get status of all relays. await rpi // Turn relay OFF. await rpi // Turn all relays OFF. await rpi}
Contributing
If you wanna fix something feel free to open a issue or a PR.