MS-GPIO is a NodeJS API for controlling Raspberry PI GPIO pins.

MS-GPIO provides various operations, those are listed below :

  1. Reading a GPIO pin
  2. Writing to a GPIO pin
  3. Teardown all the exported GPIO pin

Prerequisites:

Raspbian OS must be preloaded/installed on Raspberry PI device. For installation refer this page

Latest version of node be installed on your Raspberry PI device, follow below steps to update node to latest version:

sudo apt-get install node

ms-gpio module can then be installed with npm:

npm install ms-gpio

Technical documentation and code can be found below :

https://www.npmjs.org/packages/ms-gpio

https://github.com/mayankmania/ms-gpio