Hello,
I can't seem to find anything to help me get this working. I can print stuff on the OLED using a direct command.
u8x8,drawString(0,0,"Stuff here");
I have written a small Function for Integers that works fine.
void fontInt(uint8_t aCol, uint8_t aRow, int8_t aVal) {
char aNum[6] = {};
sprintf(aNum,"%d",aVal);
u8x8.drawString(aCol,aRow,aNum);
}
But I need one for String literals, as in "fontString(3,3,"Help me!");
void fontString(uint8_t aCol, uint8_t aRow, String aStr) {
u8x8.drawString(aCol,aRow,aStr);
}
This will not even compile. I have been searching and trying things for over an hour, but suspect I don't know the search-term I need.