Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to include NeoPixel library in ProgrammableAir library instead of in each example? #12

Open
tinkrmind opened this issue May 5, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tinkrmind
Copy link
Member

The hardware has three neopixels(WS2812B) connected to pin 12. They are useful for showing pressure data visually.

Currently, the neopixel library is included in each example that uses them and neopixel related functions are defined in the example as well (see examples/jammingGripper). All the neopixel related code uses an instance of the Adafruit_Neopixel class. If the instance is defined in programmableAir.cpp, it is not accessible in the arduino example.

So the problem is, how to define aa Adafruit_Neopixel instance in programmableAir library and have it be accessible in an example which includes programmableAir library?

@tinkrmind tinkrmind added enhancement New feature or request help wanted Extra attention is needed labels May 5, 2019
@gabebear
Copy link

I like having these separate. There are a couple neopixel/WS2812 libraries(e.g. FastLED). It's also nice to be able to pick the version of the ProgrammableAir library version and the version of the LED library independently.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants