{"_id":"@bartando/rpi-ws281x-neopixel","_rev":"2-8550f6200e6172a734ff9604adf3306a","name":"@bartando/rpi-ws281x-neopixel","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@bartando/rpi-ws281x-neopixel","version":"1.0.0","description":"Raspberry Pi ws281x library for Node.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"author":{"name":"bartando"},"license":"MIT","dependencies":{"nan":"^2.14.0","node-addon-api":"^1.7.1"},"directories":{"example":"examples","lib":"lib"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/lubomirmolin/rpi-ws281x-nodejs.git"},"bugs":{"url":"https://github.com/lubomirmolin/rpi-ws281x-nodejs/issues"},"homepage":"https://github.com/lubomirmolin/rpi-ws281x-nodejs#readme","gitHead":"6911c204c93238df91be3d938ff32962ec56f766","gypfile":true,"_id":"@bartando/rpi-ws281x-neopixel@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-ftHsVjcSL7nS3eNGBWyNsI97LcaHZeBLrPY53wwjK5gHKG6tYZcuLsVAPS0yjIA5SPfO32GKp9XCUcsy21eTVg==","shasum":"11e5894c79d0a0ebdd08ae192c03bde7511718fc","tarball":"https://registry.npmjs.org/@bartando/rpi-ws281x-neopixel/-/rpi-ws281x-neopixel-1.0.0.tgz","fileCount":53,"unpackedSize":309757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVZpsCRA9TVsSAnZWagAAFxcP+QBL6UfaPelHvqiofI07\n5k/svQclLpB3Q7MM3OkBlQQlUA3jk/RGllIQuBkiwA0Xn72VhuwOmacCW3Ji\nnd9yXaxGwMmi9IABineW02Blf02STW8NiQuYaonM58TFYLgeI/LOcrcQyVHS\ns1esQIQXzsouQkd2Y72Pd22YzmqwsRZZp/f7B4RpZFMIpV9TyN3evW2Y4jK9\nZyylVNASvT7L37k4AnJX/1O4kseeI8vMkgEfxNBfFTr2ARqWGC3653rbbijX\n5h8l6j8Rq3AimUhX/Lpi6Om16ch2CYG3TQmXqcoD8WpgZ9AgGQNEmeyfaTTk\nMVPl5OZMEzCQiXqlWlBjE44FQJZaMXMseQyPlHO0nCrvHnKGO8Qfz/Kj5/d8\nlnmXoFLh/P8WSewYccNu5xTEZJSElycurynGrUVJHZ6RQ/9hPp/PCQ5Q2pd0\nr7jntP/uq5787Hp4t6JLzIr5E9ajNKsOwX38pG6qztoEvjgJceU1KoRyydzp\navHMP0LH0ybZ/oz5Wsnb472pt6a0OpqB0GytyAL2S1cuvbIvmGYYAZcODn2M\nHc2qbxfvTUiPForlJDpMLWU/C8615VmCokgznE6BNnRiUhJzVqyJn5rh179v\n4LLvhDSfBtGX/4PHsRjv47ILopFON63EP+kKY9fZ4vbMxkaWYWA/8oDdpZvl\nYTIh\r\n=QxiA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMKdYewwgc0zkaN9SdNbqjTPoHF+O6tXIXul5/1HJaeAiEA6MPsKiYTPyUaUh9KquKch004QsyNNm4Q+UXtF4xz5NA="}]},"maintainers":[{"name":"bartando","email":"lubomirmolin@gmail.com"}],"_npmUser":{"name":"bartando","email":"lubomirmolin@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rpi-ws281x-neopixel_1.0.0_1565891180295_0.5123002151938973"},"_hasShrinkwrap":false},"1.0.1":{"name":"@bartando/rpi-ws281x-neopixel","version":"1.0.1","description":"Raspberry Pi ws281x library for Node.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"author":{"name":"bartando"},"license":"MIT","dependencies":{"nan":"^2.14.0","node-addon-api":"^1.7.1"},"directories":{"example":"examples","lib":"lib"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/lubomirmolin/rpi-ws281x-nodejs.git"},"bugs":{"url":"https://github.com/lubomirmolin/rpi-ws281x-nodejs/issues"},"homepage":"https://github.com/lubomirmolin/rpi-ws281x-nodejs#readme","gitHead":"4c7aa627b5b7e650ab489a8fa860388d103a2280","gypfile":true,"_id":"@bartando/rpi-ws281x-neopixel@1.0.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-QSJuNv4I6g3HD6RIbkdtvZSCqzWAXnam/pEOtvJ9csGs2/xG24gSU2MRR757dpiAEtlOZaxtvVuiDwCUw3rSow==","shasum":"574771e76c024974043526d79704c064fa748a58","tarball":"https://registry.npmjs.org/@bartando/rpi-ws281x-neopixel/-/rpi-ws281x-neopixel-1.0.1.tgz","fileCount":53,"unpackedSize":309687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVaA/CRA9TVsSAnZWagAA9akP/RXpZ5Rlb7m6Z0zl79KC\noFxoBVbgVIB0PB121LEP/zl5+pa6AKfqexNTFTnAtKgYv8/eVfSP+nAqLiz8\nATs/YkGlaXvDhwBCjLUAf+f76OMY4Q2IbprAYu3Ax6603vBcIG/6HA2oaL8h\nh3ZnRQx/94kHMJCZPuzR4W/bgNqWPcHzM/IeAarOZ3MhGmK9/HViQN6eO1J5\nitM2UXh0Rb5f5CZ8Yywn1VMMDJiajsy8mly3zOtuLky4O4IugpIizriW2X/v\nUpZEVwK/yAPBTU1H7Xm4M4cCDTqWT3oLcOqJ7w45JX29kulx3InggTgz/5rU\nUVBXyV9iHD7RgbcFlTuAw5tb+R2B8zW5TTHdR6XccvnExDa9/IJ4z97v+xiS\n2D8st8xFKIUFj5Lt42vEyBmuqla+RPXujNmvr2qOjIvbmYBy/htfa0KxhtRj\nHFFu1qukcUb65onXsnm1FkGS7Vvp4CShxF/6Y6WLJ/MCJWNulVMqSZM7tDS3\n099kF/am0yUcX8VzQgGMrphYsxeg85CnLu5L1RVArfm/pqcScN7/fwdHEAJ1\nCxwRCYzZTuIGHvPtHu44M5QFf/03HINFscP4OBf4hGoIMV1dFYSujrihEgax\nJ3rtx94JR6ekzLE/lp9PISe0IYFz03MLKBMPFItMARXKzptYwDMSnhx/dseg\nJaGl\r\n=KHsD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9qDry5HGvmOR5HXIg68n3ui4ZP7DT17Xf6PY+UPCbSAIgEKnGDcN1khNqBsYff48DvFORhJTpFdsvJXLtOK02MQg="}]},"maintainers":[{"name":"bartando","email":"lubomirmolin@gmail.com"}],"_npmUser":{"name":"bartando","email":"lubomirmolin@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rpi-ws281x-neopixel_1.0.1_1565892671143_0.3324389663227121"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-15T17:46:20.061Z","1.0.0":"2019-08-15T17:46:20.444Z","modified":"2022-04-04T17:44:48.350Z","1.0.1":"2019-08-15T18:11:11.312Z"},"maintainers":[{"name":"bartando","email":"lubomirmolin@gmail.com"}],"description":"Raspberry Pi ws281x library for Node.js","homepage":"https://github.com/lubomirmolin/rpi-ws281x-nodejs#readme","repository":{"type":"git","url":"git+https://github.com/lubomirmolin/rpi-ws281x-nodejs.git"},"author":{"name":"bartando"},"bugs":{"url":"https://github.com/lubomirmolin/rpi-ws281x-nodejs/issues"},"license":"MIT","readme":"# Raspberry Pi ws281x library for Node.js \r\n\r\n**Disclaimer:** This library is heavily inspired by [beyondscreen/node-rpi-ws281x-native](https://github.com/beyondscreen/node-rpi-ws281x-native)\r\n\r\n> if you happen to know C++ and node/iojs/V8, I would really appreciate any help \r\n> and feedback on this module.\r\n> There is certainly lots of room for improvement.\r\n\r\nThis module provides native bindings to the\r\n[rpi_ws281x](https://github.com/jgarff/rpi_ws281x) library by Jeremy Garff to\r\nprovide a very basic set of functions to write data to a strip of\r\nws2811/ws2812 LEDs. **this will only run on the Raspberry Pi.**\r\n\r\n## Setup\r\n\r\nthis module is available via npm:\r\n\r\n    npm i @bartando/rpi-ws281x-neopixel --save\r\n\r\nif you prefer installing from source:\r\n\r\n    npm install -g node-gyp\r\n    git clone --recursive https://github.com/lubomirmolin/rpi-ws281x-nodejs\r\n    cd rpi-ws281x-nodejs\r\n    npm install\r\n    node-gyp rebuild\r\n\r\n## Usage\r\n\r\n```javascript\r\nexports = {\r\n    /**\r\n     * configures PWM and DMA for sending data to the LEDs.\r\n     *\r\n     * @param {?Object} options  intialization-options for the library\r\n     *                           (*count = required, frequency = default 800000, dmaNum = default 10, \r\n     *                             gpioPin = default 18, invert = default false, brightness = default 100 [range 0 - 100], \r\n     *                             stripType = default WS2811_STRIP_RGB [see types below])\r\n     */\r\n    init: function(options) {},\r\n\r\n    /**\r\n     * Sets color for the pixel by position\r\n     *\r\n     * @param position\r\n     * @param {r, g, b}\r\n     */\r\n    setPixelColor: function (position, {r, g, b}) {},\r\n\r\n    /**\r\n     * Sets one color for the whole strip\r\n     * @param {r, g, b}\r\n     */\r\n    setAllColor: function ({r, g, b}) {},\r\n\r\n    /**\r\n     * set the overall-brightness for the entire strip.\r\n     *\r\n     * @param {Number} brightness value from 0 to 100.\r\n     */\r\n    setBrightness: function(brightness) {},\r\n\r\n    \r\n    /**\r\n     * show data on the LED-strip. Needs to be called for changes to take place\r\n     *\r\n     */\r\n    show: function() {},\r\n\r\n    /**\r\n     * clears all LEDs, resets the PWM and DMA-parts and deallocates\r\n     * all internal structures.\r\n     */\r\n    reset: function() {},\r\n    \r\n    /**\r\n     * Retrieves color at given pixel position\r\n     * @param position\r\n     */\r\n    getPixelColor: function (position) {}\r\n}\r\n```\r\n\r\nThe strip types:\r\n\r\n```\r\n    # 4 color R, G, B and W ordering\r\n    SK6812_STRIP_RGBW\r\n    SK6812_STRIP_RBGW\r\n    SK6812_STRIP_GRBW\r\n    SK6812_STRIP_GBRW\r\n    SK6812_STRIP_BRGW\r\n    SK6812_STRIP_BGRW\r\n    \r\n    # 3 color R, G and B ordering\r\n    WS2811_STRIP_RGB # Default\r\n    WS2811_STRIP_RBG\r\n    WS2811_STRIP_GRB\r\n    WS2811_STRIP_GBR\r\n    WS2811_STRIP_BRG\r\n    WS2811_STRIP_BGR\r\n```\r\n\r\n## For the usage look at the colorwipe.js example\r\n\r\nRun by ```sudo node examples/colorwipe.js``` \r\n","readmeFilename":"README.md"}