Issues with fonts ant RA8875 display driver

maxdog

Member
I'm stumped.
Fresh install of Arduino IDE (latest version)
Installed the teensy board/libraries per the instruction on the PRJC web site.
Grabbed one of the font examples (ILI_Ada_FontTest2), copied and pasted it in to a new sketch. For the sake of troubleshooting and this post, I trimmed it down to be very basic.
It wouldn't compile initially, with an "error: conflicting declaration 'typedef struct ILI9341_t3_font_t ILI9341_t3_font_t'".

Here is the code:

Code:
#include <Adafruit_GFX.h>
#include <SPI.h>
#include <RA8875.h>
#include "font_Arial.h"

#define RA8875_CS 10
#define RA8875_RST 14

RA8875 tft = RA8875(RA8875_CS, RA8875_RST);

void setup() {
  tft.begin(Adafruit_800x480);

  tft.fillWindow(RA8875_BLACK);
  tft.setTextColor(RA8875_WHITE);
  tft.setFont(Arial_14);

  tft.print("I'm Frustraed");
}

void loop()
{

}

The full error I am getting is:

Code:
In file included from C:\Users\sovens\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.60.0\libraries\ILI9341_t3/font_Arial.h:4,
                 from C:\Users\sovens\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.60.0\libraries\RA8875\examples\ILI_Ada_FontTest2\ILI_Ada_FontTest2.ino:4:
C:\Users\sovens\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.60.0\libraries\ILI9341_t3/ILI9341_t3.h:170:3: error: conflicting declaration 'typedef struct ILI9341_t3_font_t ILI9341_t3_font_t'
  170 | } ILI9341_t3_font_t;
      |   ^~~~~~~~~~~~~~~~~
In file included from C:\Users\sovens\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.60.0\libraries\RA8875\src/RA8875.h:214,
                 from C:\Users\sovens\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.60.0\libraries\RA8875\examples\ILI_Ada_FontTest2\ILI_Ada_FontTest2.ino:3:
C:\Users\sovens\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.60.0\libraries\RA8875\src/ILI9341_fonts.h:25:3: note: previous declaration as 'typedef struct ILI9341_t3_font_t ILI9341_t3_font_t'
   25 | } ILI9341_t3_font_t;
      |   ^~~~~~~~~~~~~~~~~
exit status 1

Compilation error: exit status 1

I've been banging my head on this for too long. I read several forum posts, which is why I uninstalled all boards, library, and the IDE and started fresh. Anybody have any ideas?

Thank you.
 
Back
Top