Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork130
Add FlashString abstract class#18
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…nt methods to core specific program memory implementation.
CLAassistant commentedApr 9, 2021
|
PaulStoffregen commentedApr 24, 2021
Is your intention to break all libraries which have used __FlashStringHelper? |
Add FlashString abstract class to support extension of String and Print methods to core specific program memory implementation. The FlashString abstract class completely eliminates the dependency on the file pgmspace.h. ArduinoCore-API should never include any references to a specific implementation (e.g. AVR).
An example implementation is shown below, tested on a SAMD21 core. I have not had a chance to implement / test on an AVR-based Arduino, but should be easily implemented at avr core level.