Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd FlashString abstract class #18
Conversation
…nt methods to core specific program memory implementation.
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.