K7MDL2 / KEITHSDR

Teensy4.X with PJRC audio card Arduino based SDR Radio project.
54 stars 11 forks source link

glcdfonts dupe problem for RA8875 and RA8876 #9

Open K7MDL2 opened 1 year ago

K7MDL2 commented 1 year ago

A long standing problem I get is duplicate glcdfont array definition errors. I believe this comes from the array being defined in the glcdfont.c RA8875 library file and also various included ILI9488_t3 and IL9341_t3 libraries which are included to leverage some fonts. I work around this by renaming glcdfont.c in the ili9488_t3/src lib folder to something else like glcdfont.c.unused.

With the new Arduino IDE 2.0.2 compiling for RA8876 I get dupes for _font_ComicSansMS in IL9488_t3 and RA8876_t3 folders. Renaming the 2 _font_ComicSansMS files.x to _font_ComicSansMS.x.unused in the ILI9488_t3 lib removes those errors.

Eventually will fix this with suitable fonts not requiring ILI9*** libs and make this issue go away.

K7MDL2 commented 9 months ago

Another way I fix this is to open the ILI9488_t3.cpp source file and at line #1983 I uncomment the #include glcdfont.c and comment out the inline function below it.

include "glcdfont.c"

//extern "C" const unsigned char glcdfont[];