Sketches using Adafruit_NeoPixel.h don't work

edited December 2013 in BlinkyTape Fun
I've uploaded a few example sketches and the ones that use the Adafruit_NeoPixel library don't work. They compile and upload, but the LEDs don't do anything. I installed the latest Adafruit_NeoPixel library from GitHub:


  • this is happening to me as well. no issues with ColorSwirl, but all the LightPainting examples using Adafruit_NeoPixel.h #fail.

  • Hi Scott, thanks for pointing that out. The issue is that they were written for an earlier version of the BlinkyTape, which used a different pin to output the data (and a different input pin for the button. The line:

    Adafruit_NeoPixel strip = Adafruit_NeoPixel(LED_COUNT, 5, NEO_GRB + NEO_KHZ800);
    needed to be changed to:
    Adafruit_NeoPixel strip = Adafruit_NeoPixel(LED_COUNT, 13, NEO_GRB + NEO_KHZ800);

    and the line:
    uint8_t btn_pin = 13;
    needed to be changed to:
    uint8_t btn_pin = 10;

    I just commited these changes, so if you download the library again, they should work.

    It's actually possible to just load the image files from them into PatternPaint and upload them to the Blinkytape that way, so we were planning on moving the images into PatternPaint in the future, and removing the examples.
  • thx matt... ill check it out when i get back home today.

    re: using PatternPaint exclusively... do you think you will eventually have a way to accomplish the NyanCat example (with multiple patterns activated by the button)?

    also noticed that the button is at the top of a pattern paint image, this makes it difficult for button pressing while light painting.

    thx again... so far loving it as much as my 3 year old!
  • boom! nyan cat is flying all around my apartment!

  • I would certainly like to add more complex features like that, but it's maybe a little bit further out. One thing that's definitely on the list is adding support for saving a .h from PatternPaint, so that more advanced things can be done with it in Arduino later.

    And good point, we should probably have a flip image feature to allow it to display upside down/backwards!
  • Also, woo! That's awesome!
Sign In or Register to comment.