fas

fastgpio

a nodejs gpio library for the raspberry pi using the fastest way to export values

Showing:

Popularity

Downloads/wk

1

GitHub Stars

7

Maintenance

Last Commit

8yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-fastgpio

This is a small node.js GPIO library for the Raspberry Pi using the fastest way to export values via C (http://codeandlife.com/2012/07/03/benchmarking-raspberry-pi-gpio-speed/).

Installation:

npm install fastgpio

In your node.js file just require the library:

var fastgpio = require( "fastgpio" );

Now you can prepare your GPIO for output using:

fastgpio.prepareGPIO(18);

After that you can set your GPIO to HIGH (turn on) anytime with:

fastgpio.set(18);

Or you can set your GPIO to LOW (turn off) anytime with:

fastgpio.unset(18);

Remember: You must run your application as root, to access the gpio memory areas!

The library only supports GPIOs as output, but in the fastest possible way from node.js. It uses the standard Raspberry Pi GPIO numbers.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial