Functions for DrawString - U8glib

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.

This will not even compile

But I bet the compiler gave you some clues as to what it didn't like.

But you chose not to share them.

What a shame.

Bet it would work with a char[] array instead of a String.