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

Allow MAX_SEQUENCES to be overriden on build #68

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nuxeh
Copy link

@nuxeh nuxeh commented May 25, 2022

Love the lib :)

This is useful to not consume unnecessary SRAM when only requiring, e.g. a single sequence, giving the possibility of saving a fair amount of resources in such cases.

In my testing, on Arduino UNO, setting EASYBUTTON_MAX_SEQUENCES to 1 saves 64 bytes.

This is useful to not consume unnecessary SRAM when only requiring, e.g.
a single sequence, giving the possibility of saving a fair amount of
resources in such cases.

In my testing, on Arduino UNO, setting EASYBUTTON_MAX_SEQUENCES to 1
saves 64 bytes.
@nuxeh
Copy link
Author

nuxeh commented May 25, 2022

Actually, this causes warnings about redefinition of the class (and doesn't work at all) when EASYBUTTON_MAX_SEQUENCES is anything other than 5, which is currently baffling me.

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

Successfully merging this pull request may close these issues.

None yet

1 participant