Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 07 23:44
    dependabot[bot] labeled #282
  • Dec 07 23:44
    dependabot[bot] assigned #282
  • Dec 07 23:44
    dependabot[bot] review_requested #282
  • Dec 07 23:44
    dependabot[bot] opened #282
  • Dec 07 23:44

    dependabot[bot] on npm_and_yarn

    chore: bump eslint from 8.4.0 t… (compare)

  • Dec 06 19:36

    dependabot[bot] on npm_and_yarn

    (compare)

  • Dec 06 19:36

    dependabot[bot] on master

    chore: bump eslint from 8.3.0 t… Merge pull request #281 from aj… (compare)

  • Dec 06 19:36
    dependabot[bot] closed #281
  • Dec 06 19:36
    ajfisher commented #281
  • Dec 06 19:04
    dependabot[bot] assigned #281
  • Dec 06 19:04
    dependabot[bot] review_requested #281
  • Dec 06 19:04
    dependabot[bot] labeled #281
  • Dec 06 19:04
    dependabot[bot] opened #281
  • Dec 06 19:04

    dependabot[bot] on npm_and_yarn

    chore: bump eslint from 8.3.0 t… (compare)

  • Dec 03 22:32

    dependabot[bot] on master

    chore: bump color-string from 1… Merge pull request #280 from aj… (compare)

  • Dec 03 22:32

    dependabot[bot] on npm_and_yarn

    (compare)

  • Dec 03 22:32
    dependabot[bot] closed #280
  • Dec 03 22:32
    ajfisher commented #280
  • Dec 03 19:05
    dependabot[bot] assigned #280
  • Dec 03 19:05
    dependabot[bot] review_requested #280
Jean-Philippe Côté
@djipco
*have time
Joel Gullander
@Joelgullander

I am trying to create a list of pixel.Strips and im defining it as stated below:
var strips = new pixel.Strip({
board: this,
controller: "FIRMATA",
strips: [ {pin: 2, length: 4}, {pin:3, length:4 }, ],
gamma: 2.8,
})

only way to light up those strips is by doing strips.show(), but if I want to show only the pin 2 strip how would I do that?

What im trying to accomplish is lighting up pin 2 strip and after 1 sec delay light up pin 3 strip
ajfisher
@ajfisher

@Joelgullander there's a couple of ways to achieve this.

In defining the strip the way you have you're effectively saying "compose all of these strips into one bigger strip". This is really helpful to deal with latency on longer strips because you have to push the pixels sequentially into them. Splitting to smaller ones means you can target your writes a little more effectively and get better throughput.

As such what happens is that pixels 0-3 are on pin 2 and then pixels 4-7 are on pin 3.

So you can do something like this:


for (let i=0; i< 4; i++) {
  strips.pixel(i).color("ff0000");
}

strips.show();

setTimeout(() => { 
  for (let i=4; i< 8; i++) {
    strips.pixel(i).color("ff0000");
  }
}, 1000);

The other option is define 2 Strip objects on separate pins and then control them independently from each other.

NunnoXYZ
@nunnoXYZ
hello !
hey guys can someone point me out a way or a tutorial to get working with a 4 pin led strip (5050) ?
NunnoXYZ
@nunnoXYZ
ajfisher
@ajfisher
@nunnoXYZ This type of strip isn't supported by this library. You can drive it simply using a standard RGB LED object from nodebots.
Norberto Purtschert
@npurtschert
Hi. Is there the posibility to use this library in another HW like an UP box? Check here ;) http://www.up-board.org/upsquared/
carloposo
@carloposo
What version on Node is node-pixel compatible with?
carloposo
@carloposo
Is there a possibility to destroy the USB of the Mac if fps are too high?
Benjamin E. Coe
@bcoe
anyone kicking around? I'm attempting to connect to an Arduino Micro, from a raspberry pi, over usb, with the firmata installed.
the connection seems to hang indefinitely.
Benjamin E. Coe
@bcoe
got it working, I think the baud rate needed to be 28800 in the firmata software)
ajfisher
@ajfisher
@bcoe that seems a bit odd. Not sure why the baud rate was set that slow?
keaixx365
@keaixx365
Anyone here
keaixx365
@keaixx365
@ajfisher It runs into error when flash Backpack using "interchange install git+https://github.com/ajfisher/node-pixel -a nano", Error: Sending 3020: receiveData timeout after 400ms.
@ajfisher any idea on this error?
keaixx365
@keaixx365
@ajfisher is this tool possible to support more than 1000 leds?
Nuno Marujo
@nhmarujo
Hi everyone. Is it possible to set individual brightness levels when using a strip?
I mean, define brightness per led
Eric Johnson
@ericdjohnson_twitter
Hi all, I ran into an error when trying to connect my strip of WS2812b LEDs to my Raspberry Pi 4: 1583152030510 Board No connected device found How do I go about debugging this? I was able to get node-red's neopixel node working and able to control my strip.
Abhishek Chaudhary
@theabbie
LooLooAsuna
@LooLooAsuna
whats the best way to change the brightness of the leds
Malte
@qMalte
2021-06-29 17_34_47-Window.png
Hello, my pixel Strip Object has the value: "Strip { dep_warning: { stripLength: false, gammaValue: false } }". The led is unfortunately not controlled, does anyone have an idea what it could be?