Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Blinkt! class (ES6) for node.js
Control your Pimoroni Blinkt! in javascript. 8 APA102 LEDs for your Raspberry Pi https://shop.pimoroni.com/products/blinkt. Original python libraries available https://github.com/pimoroni/blinkt.
Set the pixels with setPixel()
or setAll()
and call draw()
to write the pixels to the device.
setPixel(0, 255, 255, 255, 0.5);
- setPixel takes the pixel number (0-7), rgb values and optionally brightnesssetAll(255,255,255, 0.3)
- sets all pixels to a color, with an optional brightness valueoff()
- turn off all lights. This calls draw()
internally, as it's meant to be a single call to turn everything off.rotateLeft()
- shift leds to the leftrotateRight()
- shift leds to the rightdraw()
- always call draw to write the pixel data to blinktAdditionally, there are some startup options
'RGB'
by default, you can also use 'HSL'
and 'HSV'
. HSL works, but isn't connected to led brightness, so not completely usable.off()
when the process exits. true
by default.const Blinkt = require('blinktjs');
const blinkt = new Blinkt({defaultBrightness: 0.2});
blinkt.setAll(255, 0, 0);
blinkt.draw();
See the examples folder for a few basic examples.
FAQs
Node.js class for the Pimoroni Blinkt!
We found that blinktjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.