Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Creating different animations on different sections of one strip plus APA102 Leds. #12

Open
BNNorman opened this issue Mar 4, 2017 · 0 comments

Comments

@BNNorman
Copy link

BNNorman commented Mar 4, 2017

I have modified the ALA library to 1) add the ability to drive the APA102 ledstrip using the APA102 library 2) include a modified FastGPIO to drive mega2560 digital pins 3) ability use different animation sequences on different sections of the same strip. The latter is useful if you have a long strip (memory permitting, hence the 2560) and want different animations on different sections.
I've also included a Colours.h file to define a shed load of standard colour names. Changed files are AlaLedRgb - now called ExtAlaLedRgb - lives in the sketch folder since I'm using it instead of the standard AlaLedRgb. And ExtFastGPIO - which now has pin definitions for the mega2560 . Read the header regarding which pins because some don't work with fastGPIO.

I am only able to test with WS2812B and APA102 - so am unable to test that my changes work with the other supported LEDs. Feedback would be helpful.

This is a zip of my sketch folder:-
ALA_DEV_1.6.zip

There may be some Serial.print's in ExtAlaLedRgb.cpp left over from debugging so it isn't really suitable for general use, just yet.

Note that this sketch requires the memory capacity of a mega2560 - the 2K devices just aren't big enough to drive my 144 led APA102 strip although the code compiles to under the 32K Flash size. I'm not sure how I can optimise the memory usage. (Any advice gratefully accepted)

You can view my video of two animations running on my APA102 led strip on YouTube here:-

https://youtu.be/hsvYEGXiAFw

Hope you like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant