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

Flash footprint #9

Open
Testato opened this issue Dec 28, 2015 · 2 comments
Open

Flash footprint #9

Testato opened this issue Dec 28, 2015 · 2 comments

Comments

@Testato
Copy link

Testato commented Dec 28, 2015

i compiled the SimpleRgbLed on an UNO and it use 22KB of flash memory.

Is it absolutely necessary all this space ?
On .cpp i view that you include neopixel code and tc code, but if an user need only use a single simple RGB led he do not need neopixel or other code.

Maybe it is possible write some ifndef for dinamically reduce code usage ?

@Testato Testato changed the title Ram footprint Flash footprint Dec 28, 2015
@bportaluri
Copy link
Owner

Hi,
program space is consumed only by 10% from neopixel or TLC libraries.
The animation functions are consuming it. Since they are all referenced in the AlaLedRgb::setAnimationFunc method they are all included.
A possible solution is to use function pointers. Which may make the library less easier to use.
I will think about it. Thank you for the feedback.

@eeik
Copy link

eeik commented Mar 23, 2018

For what it's worth for others looking to lighten the load of the ALA Library if teetering on the edge of having your sketch fit on the Arduino or not, I had some decent luck in commenting out the animation functions within both the AlaLed::setAnimationFunc and AlaLedRgb::setAnimationFunc functions when I had decided that I would definitely not be using some of the available options.

un-needed animation versions

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

No branches or pull requests

3 participants