Skip to content
New issue

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

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

Already on GitHub? # to your account

Increased usage of PROGMEM string #268

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bennydiamond
Copy link

Even more flash strings.
In my project, it saved me 154 bytes of memory (10 binary sensors with minimal setup).

Defined at compile time this time with ARDUINOHA_MAXPROGMEM_STRINGS define
I originally wanted to go for something dynamic but using a global defined macro is cleaner (and easier!)
Feel free to suggest define names. I'm bad at coming up with names.

Saves a good chunk of memory
No breaking change

Tested on my custom project, only with BinarySensor devices tho...

Defined at compile time this time with `ARDUINOHA_MAXPROGMEM_STRINGS` define
Saves a good chunk of memory
No breaking change
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant