Hi, ich passe gerade die GLCD-Bibliothek von apetech auf einen
ATMega2560 an.
void ks0108SelectFont(const char* font, ks0108FontCallback callback,
uint8_t color);
Nun ist aber der Font als
static uint8_t Arial_Bold_14[] PROGMEM = {
0x22, 0x08, // size
0x0A, // width
0x0E, // height
...
...
}
ausgeführt, dies führt zu:
Error expected 'const char *' but argument is of type 'uint8_t *'
Angepasst hilft das aber auch nicht weiter:
void ks0108SelectFont(static uint8_t * font, ks0108FontCallback
callback, uint8_t color);
ergibt:
Error storage class specified for parameter 'font'
Liegt's an den compiler-Einstellungen? Ich hab's mit verschiedenen
Optimierungen probiert, geht nicht.