Skip to content

FastLED with avr/sleep.h #29

Closed
Closed

Description

@simonparke

Hi All,

Firstly, what a great library!

I'm using it in a project with an WS2812B attached to a Sparkfun ProMicro 32u4. When I put the arduino into standby the LED is flashing alternate red / green and I can't seem to stop it. (I've tried setting the LED to 0,0,0, black etc but nothing works. Any ideas as it's playing havoc with my attempts to save battery life?

Also, I've also noticed that R and G are switched around in the library when selecting the WS1812B. To get a full green I have to use 255,0,0 and to get a full red I have to use 0,255,0. Not sure if this is a problem with the library or whether I was sold the wrong LED's!

Regards,

Simon

Activity

  1. focalintent commented on Feb 18, 2014

    @focalintent
    Contributor

    Re: the RGB ordering issue see this page in the wiki page for RGBCalibrate - manufacturers sometimes re-order the RGB ordering. Sometimes this is spec'd in the chip, sometimes not. You can change the ordering programatically though, for example:

    setup() { LEDS.addLeds<WS2811, 6, GRB>(leds, NUM_LEDS); }
    

    will shuffle the rgb ordering on output appropriately.

    As far as what's going on with sleep - I'm not sure, having never played with the sleep functionality. You might need to use something (transistor? mosfet? this side of electronics i'm weak on) to actually cut power/data connection to the leds when you want to sleep the pro micro. Keep in mind these leds will pull power even when completely off. The Chipset reference wiki page has what we know so far about dark power draws.

  2. added this to the Future backlog milestone on Apr 17, 2014
  3. self-assigned this
    on Apr 18, 2014
  4. focalintent commented on Sep 25, 2014

    @focalintent
    Contributor

    Is this still an issue? Do you have sample code/pictures of your setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions