neonious / lowjs

A port of Node.JS with far lower system requirements. Community version for POSIX systems such as Linux, uClinux or Mac OS X.
http://www.lowjs.org/
Other
1.28k stars 71 forks source link

use IO-plugin APIs for GPIO #12

Closed monteslu closed 5 years ago

monteslu commented 5 years ago

If the gpio support was shaped like the johnny-five IO APIs you'd get a lot of extensions for free. Aside from direct johnny-five access, you'd be able to support libraries like:

https://github.com/louiemontes/node-led https://github.com/noopkat/oled-js and https://github.com/ajfisher/node-pixel

gitowiec commented 5 years ago

So how gpio support is shaped then? Where I could read about it? I'm looking into lowjs because I would like to flash some colorful LED stripes with my Pi Zero W using REST Api written in JS...

janus commented 5 years ago

So how gpio support is shaped then? Where I could read about it? I'm looking into lowjs because I would like to flash some colorful LED stripes with my Pi Zero W using REST Api written in JS...

@gitowiec Please why REST API for just LED stripes? If all you want PI Zero for is to do LED thingy then check this link, https://github.com/Mikestylz/CirnOS

gitowiec commented 5 years ago

@janus Thanks for your replay, but:

  1. I don't know Lua
  2. I know JS
  3. I don't want to resign from using Raspbian (I don't want to lock my Pi Zero from other features by closing it with CirnOS installation)
  4. REST Api is just an interface for another application from another device to control the LEDs
  5. CrinOS has no documentation 5.1 There are only sparse examples 5.2 What is the API behind CirnOS? Just Lua is not enough
ryanjgill commented 5 years ago

@gitowiec You can use the FadeCandy board with a pi zero and drive it using nodejs with node-fadecandy module.

I used them in this project NeoPixel Clock and its working great.