Skip to content

Allow MAX_SEQUENCES to be overriden on build#68

Open
nuxeh wants to merge 2 commits into
evert-arias:mainfrom
nuxeh:nuxeh/max-sequences
Open

Allow MAX_SEQUENCES to be overriden on build#68
nuxeh wants to merge 2 commits into
evert-arias:mainfrom
nuxeh:nuxeh/max-sequences

Conversation

@nuxeh

@nuxeh nuxeh commented May 25, 2022

Copy link
Copy Markdown

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

nuxeh commented May 25, 2022

Copy link
Copy Markdown
Author

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.

1 participant