Skip to content

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

@tinkrmind

Description

@tinkrmind

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions