bitbank2 / ss_oled

Simple and small library to control 1-bpp OLED displays (Linux + Arduino)
GNU General Public License v3.0
186 stars 34 forks source link

Added feature to write strings from PROGMEM with F() macro. #34

Closed Eztys closed 4 years ago

Eztys commented 4 years ago

To save precious RAM I added an overloading function to the oledWriteString function that accepts the F() macro i.e. strings to be displayed can be stored in flash memory.

bitbank2 commented 4 years ago

This change will break the build on Linux because the code is really C and not C++. It also only applies to AVR.

I have stopped development on ss_oled and am actively working on 'OneBitDisplay' now. You may keep this change for your own work, but I will not merge it. You can also write a simple helper function which copies the PROGMEM data into RAM and then calls oledWriteString().