Recommendations for 10" TFT Display with touchscreen for Teensy 4.1

Compiled code and got errors for COLOR16M. The compiler graciously made some suggestions to change to COLOR65K and now the compiler is happy.
I wondered about the colors. I have a different sketch that was using those colors, but did not find them in the header files... But
when I clicked on it and asked to show me in sources it showed the same names... At the spot now in header file with 65K...
Guessing @wwatson changed the names, but was still in Arduino cache...

Note: I am still hacking on the touch code. I am going to experiment some with speeding it up. That is I currently read
in enough data from the device for both possible touch, even though I only use one... in this case, so will setup configuration
where I can choose to just read in one.

Also each time I do a read, I tell it to start at register 0... Not sure if I need to do this every time or if will go back to 0 on the next read.
...

I see in your code you have Wire and wire2. I am assuming it it using wire2 because it is a T41 so I changed to pin 8 "#define CTP_INT_PIN 8". I don't see how to set pins for SDA2 and SCL2 or how to git it an address if the touch screen has one. Can you point me in the correct direction
Yes on T4.1 I am using Wire2. As the pins for Wire and Wire1 are used by the FlexIO object that is used for the actual display:
1726922334744.png


If you look at the Teensy card, you will see that Wire2 are on pins 25 and 24.
Wire is on 18 and 19 and Wire1 is on 17 and 16. These are the default pins for the
different Wire objects. Wire1 has a few alternative pins you can see on the back of the
card, but none of those are convenient (On SDCard Adapter and memory pin)

Currently in my code you can optionally pass in which Wire object to use on the begin method:
Code:
if (!ctp.begin(&TOUCH_WIRE)) {
Where earlier I set which one I was using:
Code:
#ifdef ARDUINO_TEENSY41
#define TOUCH_WIRE Wire2
#define CTP_INT_PIN 26
#else
#define TOUCH_WIRE Wire
#define CTP_INT_PIN 22 // 0xff if pin is not connected
#endif

Note: there is really nothing special about my library versus the others. It is mostly just reading data in using I2C.
The only thing mine does that some don't is if you specify an IO pin for the Interrupt, the touched() method will check to
see if it had received an interrupt. If not returns false...
 
I wondered about the colors. I have a different sketch that was using those colors, but did not find them in the header files... But
when I clicked on it and asked to show me in sources it showed the same names... At the spot now in header file with 65K...
Guessing @wwatson changed the names, but was still in Arduino cache...
@wwatson and all... I figured it out... I have both your normal versions of the libraries as well as your 24 bit version of the libraries and
it choose your 24 bit version as they both have the same names for header files and since neither of them are the names of the directory it
is in, not sure if it is just potluck on which one is chosen.

So I removed the junctions (links) to the 24 bit versions...

Code:
Multiple libraries were found for "RA8876_Config_8080.h"
  Used: D:\github\TeensyRA8876-24-Bit-8080
  Not used: D:\github\TeensyRA8876-8080

Edit: Updated sketch...
 

Attachments

  • RA8876_CapTouchPaint-240921a.zip
    6 KB · Views: 31
Last edited:
@wwatson and all... I figured it out... I have both your normal versions of the libraries as well as your 24 bit version of the libraries and
it choose your 24 bit version as they both have the same names for header files and since neither of them are the names of the directory it
is in, not sure if it is just potluck on which one is chosen.

Code:
Multiple libraries were found for "RA8876_Config_8080.h"
  Used: D:\github\TeensyRA8876-24-Bit-8080
  Not used: D:\github\TeensyRA8876-8080

Edit: Updated sketch...
Good to here. Was hoping that there was no cross contamination on my part:D
 
@DJETH - I ran it at 4, 20, 40, 60 and 120mhz for the bus speed. 4 mhz was slower but 20 - 120 mhz I did not notice any time difference... the speeds were the same.
The buss speed is limited to how fast the RA8876 processes internal operations. This function:
Code:
//**************************************************************//
/*[Status Register] bit3   Core task is busy
Following task is running:
BTE, Geometry engine, Serial flash IRQ, Text write or Graphic write
0: task is done or idle.   1: task is busy
A typical task like drawing a rectangle might take 30-150 microseconds,
    depending on size
A large filled rectangle might take 3300 microseconds
*****************************************************************/
void RA8876_common::check2dBusy(void) {
    ru32 i;
    for (i = 0; i < 100000; i++) { // Please according to your usage to modify i value.
        delayMicroseconds(1);
        if ((lcdStatusRead() & 0x08) == 0x00) {
            return;
        }
    }
    Serial.println("2D ready failed...");
}
is used throughout the driver. So 20MHz appears to be the fastest effective buss speed...
 
wwatson,
Thanks for the clarification on the buss speed... Plenty fast enough for me... your library works great and has saved me a ton of time.

KurtE and wwatson,
downloaded the latest code (thanks KurtE) and am just starting to looking to see why my I2C is not working. I noticed that there is a regular pulse on the interrupt pin (pin 33 display - pin 8 on my T41). Maybe it is just on my set up but the pulse was there before I changed the interrupt pin to pin 8 in the sketch. And after. The pulse looks like it comes from the display itself. My question is... every time the 225us pulse occurs does it interrupt the program? or does it look for the wider 800us pulse when the screen is touched? The 225us pulse occurs every 41ms.
Green is the interrupt pin.
Screenshot 2024-09-21 132052.png


Screenshot 2024-09-21 132426.png

Screenshot 2024-09-21 132846.png
 
Quick update...
I did get the display to respond using the "GT9271_teensy_Touch" sketch in the "Arduino-goodix-GT9271-main" library.
Learned some things...
when the touchscreen is turned on it uses the interrupt and reset pins to set the display chip I2C address. I connected the T41 pin 9 to the I2C reset pin 36 of the display. I also set that pin 9 in the sketch
Code:
#define RST_PIN 9 // 255 means do not use reset pin else reset using pin number.
I could not make the display work with the addresses 0x5D or 0X14. using the reset pin changes the way the address in the GT9271 is set and it causes problems. I set the code back to
Code:
#define RST_PIN 255 // 255 means do not use reset pin else reset using pin number.
and address 0x5d works. The frustrating part is the GT9271 manual has 4 possibilities for addresses (see code below) but they are 8 bit addresses and this I2C uses 7 bit addresses. Luckily for me wwatson made a note about this in the .cpp file saving me the loss of hair.
Code:
  /* HIGH: 0x28/0x29 (0x14 7bit), LOW: 0xBA/0xBB (0x5D 7bit) */
  digitalWrite(intPin, i2cAddr == GOODIX_I2C_ADDR_BA);

after the CTP started communicating with the T41 the constant 41ms pulses (as seen in previous post) on the interrupt stopped. in the scope picture below when the green trace pulses low i an rubbing my finger on the CTP.
The blue trace is the clock - Red is data - Green is Interrupt and Yellow is/was the reset.
There is a loop function that does something in the I2C data steam every 100ms that is why Clock and Data keep cycling.

Screenshot 2024-09-21 210000.png


Screenshot 2024-09-21 210211.png
 
Sorry, it looks like my 7” and your 10” BuyDisplay RA8876 displays use different touch controllers…
I should have guessed once you mentioned the name of the library you were trying.
 
Hello,
I tried some sketches from the "TeensyRA8876-SPI-main" library that work,but i have errors with the "graphics" sketch:

Code:
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3/font_Arial.h:4,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:9:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\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\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:87,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:8:
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\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;
      |   ^~~~~~~~~~~~~~~~~
In file included from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:8:
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:956:29: error: redefinition of 'class RA8876_Button'
  956 | #define Adafruit_GFX_Button RA8876_Button
      |                             ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3/ILI9341_t3.h:560:7: note: in expansion of macro 'Adafruit_GFX_Button'
  560 | class Adafruit_GFX_Button {
      |       ^~~~~~~~~~~~~~~~~~~
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:957:7: note: previous definition of 'class RA8876_Button'
  957 | class RA8876_Button {
      |       ^~~~~~~~~~~~~
EDIT: Whatever color i put for fillscreen,it's always blue!
I need Adafruit_GFX for RA8875 and ILI9341 for my others displays,how to resolve it? :unsure:
 
Last edited:
First off could you show me the complete compilation output? Particularly the end where it shows which libraries are used. Like this:
Code:
Memory Usage on Teensy 4.1:
  FLASH: code:71884, data:11252, headers:9020   free for files:8034308
   RAM1: variables:12448, code:68456, padding:29848   free for local variables:413536
   RAM2: variables:12416  free for malloc/new:511872
/home/wwatson/arduino-1.8.19-1.59/hardware/teensy/../tools/stdout_redirect /tmp/arduino_build_602711/graphics.ino.lst /home/wwatson/arduino-1.8.19-1.59/hardware/teensy/../tools/arm/bin/arm-none-eabi-objdump -d -S -C /tmp/arduino_build_602711/graphics.ino.elf
Multiple libraries were found for "font_Arial.h"
 Used: /home/wwatson/Arduino/libraries/ILI9341_fonts
 Not used: /home/wwatson/arduino-1.8.19-1.59/hardware/teensy/avr/libraries/ILI9341_t3
Using library TeensyRA8876-SPI-main at version 1.0.0 in folder: /home/wwatson/Arduino/libraries/TeensyRA8876-SPI-main
Using library TeensyRA8876-GFX-Common-main at version 1.0.0 in folder: /home/wwatson/Arduino/libraries/TeensyRA8876-GFX-Common-main
Using library Wire at version 1.0 in folder: /home/wwatson/arduino-1.8.19-1.59/hardware/teensy/avr/libraries/Wire
Using library SPI at version 1.0 in folder: /home/wwatson/arduino-1.8.19-1.59/hardware/teensy/avr/libraries/SPI
Using library ILI9341_fonts at version 1.0 in folder: /home/wwatson/Arduino/libraries/ILI9341_fonts

EDIT: Whatever color i put for fillscreen,it's always blue!
Please provide an example of the sketch that has a problem with the "fillScreen()" function...
So far I cannot duplicate your issues...
 
Strange behaviour:

Code:
 tft.setRotation(2);
  tft.graphicMode(true);
 
  tft.fillScreen(BLACK);   
  tft.setFontSize(1, false);
 
  tft.setTextCursor(100, 100);   
  tft.print("test!");

The text is always upside down whatever the rotation,and if
Code:
tft.setFontSize(1, false);
the screen stays always blue,but if i put
Code:
tft.setFontSize(1, false);
  tft.fillScreen(BLACK);
The screen gives right the black color if i put the fillscreen after the fontsize,and if i put true in the fontsize,the screen is black
even if the fillscreen is before the fontsize.

Sorry if my observations are redondant,i didn't know this screen before.
 
Well, i was writing while you did it too,here's my complete verbose:

Code:
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\trans\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\trans\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=audio,speed=600,opt=o2std,keys=en-us,audiorate=44,audioblocksize=normal,USBchannelcount=8 -ide-version=10819 -build-path C:\Users\trans\AppData\Local\Temp\arduino_build_843762 -warnings=none -build-cache C:\Users\trans\AppData\Local\Temp\arduino_cache_668879 -verbose C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\trans\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\trans\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=audio,speed=600,opt=o2std,keys=en-us,audiorate=44,audioblocksize=normal,USBchannelcount=8 -ide-version=10819 -build-path C:\Users\trans\AppData\Local\Temp\arduino_build_843762 -warnings=none -build-cache C:\Users\trans\AppData\Local\Temp\arduino_cache_668879 -verbose C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino
Using board 'teensy41' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Using core 'teensy4' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp" -o nul
Alternatives for RA8876_Config_SPI.h: [TeensyRA8876-SPI-main@1.0.0]
ResolveLibrary(RA8876_Config_SPI.h)
  -> candidates: [TeensyRA8876-SPI-main@1.0.0]
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp" -o nul
Alternatives for RA8876_common.h: [TeensyRA8876-GFX-Common-main@1.0.0]
ResolveLibrary(RA8876_common.h)
  -> candidates: [TeensyRA8876-GFX-Common-main@1.0.0]
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp" -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp" -o nul
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp" -o nul
Alternatives for font_Arial.h: [ILI9341_t3@1.0]
ResolveLibrary(font_Arial.h)
  -> candidates: [ILI9341_t3@1.0]
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src\\RA8876_t3.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src\\_font_ComicSansMS.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src\\_font_OpenSans.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src\\glcdfont.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src\\RA8876_common.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src\\_font_ComicSansMS.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src\\_font_OpenSans.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src\\glcdfont.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire\\Wire.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire\\WireIMXRT.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire\\WireKinetis.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire\\utility\\twi.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI\\SPI.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3\\ILI9341_t3.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3\\font_Arial.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3\\font_ArialBold.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3\\glcdfont.c" -o nul
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp" -o "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762/pch/Arduino.h" -o "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762/pch/Arduino.h.gch"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -DAUDIO_BLOCK_SAMPLES=128 -DAUDIO_SAMPLE_RATE_EXACT=44100.0f -DAUDIO_SAMPLE_RATE_I=44100 -DAUDIO_USB_CHANNEL_COUNT=8 -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_AUDIO -DLAYOUT_US_ENGLISH "-IC:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-SPI-main\\src" "-IC:\\Users\\trans\\Documents\\Arduino\\libraries\\TeensyRA8876-GFX-Common-main\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\Wire" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ILI9341_t3" "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp" -o "C:\\Users\\trans\\AppData\\Local\\Temp\\arduino_build_843762\\sketch\\graphics.ino.cpp.o"
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3/font_Arial.h:4,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:9:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\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\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:87,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:8:
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\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;
      |   ^~~~~~~~~~~~~~~~~
In file included from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:8:
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:956:29: error: redefinition of 'class RA8876_Button'
  956 | #define Adafruit_GFX_Button RA8876_Button
      |                             ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3/ILI9341_t3.h:560:7: note: in expansion of macro 'Adafruit_GFX_Button'
  560 | class Adafruit_GFX_Button {
      |       ^~~~~~~~~~~~~~~~~~~
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:957:7: note: previous definition of 'class RA8876_Button'
  957 | class RA8876_Button {
      |       ^~~~~~~~~~~~~
Using library TeensyRA8876-SPI-main at version 1.0.0 in folder: C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main
Using library TeensyRA8876-GFX-Common-main at version 1.0.0 in folder: C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main
Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
Using library ILI9341_t3 at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3
Error compiling for board Teensy 4.1.
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\Adafruit_LED_Backpack_Library_master: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\Adafruit_LED_Backpack_Library_master
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\Arduino-Emulator: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\Arduino-Emulator
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\arduino-pico: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\arduino-pico
Invalid version '4.6.1.2' for library in: C:\Users\trans\Documents\Arduino\libraries\Arduino-STK-master
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\Arduino_Core_STM32: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\Arduino_Core_STM32
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\btstack: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\btstack
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\epd-library-arduino-master: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\epd-library-arduino-master
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\hardware: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\hardware
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\lv_port_esp32: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\lv_port_esp32
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\MAKEFILE: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\MAKEFILE
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\Makerfabs-ESP32-S3-Parallel-TFT-with-Touch-main: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\Makerfabs-ESP32-S3-Parallel-TFT-with-Touch-main
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\Makerfabs-ESP32-S3-SPI-TFT-with-Touch-main: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\Makerfabs-ESP32-S3-SPI-TFT-with-Touch-main
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\MASSDUINO: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\MASSDUINO
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\pico-extras-master: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\pico-extras-master
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\pico-playground-master: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\pico-playground-master
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\pico-sdk: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\pico-sdk
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\Pico_ePaper_Code: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\Pico_ePaper_Code
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\portaudio: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\portaudio
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\RP2040-0.42LCD-main: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\RP2040-0.42LCD-main
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\T-Display-S3-main: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\T-Display-S3-main
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\t40fx-main: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\t40fx-main
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\teensy-4-usbAudio: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\teensy-4-usbAudio
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\TeensyWorkshop-master: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\TeensyWorkshop-master
Invalid library found in C:\Users\trans\Documents\Arduino\libraries\TTGO-LoRa-Series-master: no headers files (.h) found in C:\Users\trans\Documents\Arduino\libraries\TTGO-LoRa-Series-master
 
@AntiLoop - Here is a small sketch that performs what you were trying to do. One exception is that right now when using internal fonts, only rotation 0 and 1 are supported. To get full rotation you will need to use external graphic fonts. There are several examples of using graphic fonts with rotation. Here's the sketch:
Code:
/***************************************************************
 * testing.ino
 ***************************************************************/
#include "Arduino.h"
#include "RA8876_Config_SPI.h"
#include <RA8876_t3.h>
#include <SPI.h>
#include <math.h>

RA8876_t3 tft = RA8876_t3(RA8876_CS, RA8876_RESET); //Using standard SPI pins

// Array of RA8876 Basic Colors
PROGMEM uint16_t myColors[] = {
  0x0000,0xffff,0xf800,0xfc10,0x8000,0x07e0,0x87f0,0x0400,
  0x001f,0x051f,0x841f,0x0010,0xffe0,0xfff0,0x8400,0x07ff,
  0x87ff,0x0410,0xf81f,0xfc1f,0x8010,0xA145
};

void setup() {
  Serial.begin(115200);
  while (!Serial && millis() < 1000) {} //wait for Serial Monitor

#if defined(USE_SPI_47000000)
  tft.begin(47000000); // Max is 47000000 MHz (using short 3" wires)
#else
  tft.begin(); // default SPI clock speed is 30000000 MHz
#endif
//*********************************************************************
  tft.graphicMode(true); // Not really needed for text output but setting
                         // it to false turns off graphics mode.
//**********************************************************************
}

void loop() {
  tft.fillScreen(BLUE); // This functions properly.
  tft.setRotation(0); // 0 == screen flipped 0 degrees.
  tft.setTextCursor(100, 100);  // Set text position.
  tft.setTextColor(WHITE,BLUE); // Set text foreground and background colors.
  tft.print("rotation(0)");

  waitforInput(); // Wait for input from serial monitor.

  tft.setFontSize(1, true); // Setting the 2nd parameter to false clears
                            // the screen to default color and homes the cursor.
  tft.fillScreen(BLACK); // This functions properly.
  tft.setRotation(1); // 1 == screen at 180 degrees.
  tft.setTextCursor(100, 100);  // Set text position again.
  tft.setTextColor(WHITE,BLACK); // Set text foreground and background colors.
  tft.print("rotation(1)");

  waitforInput();
}

void waitforInput()
{
  Serial.println("Press anykey to continue");
  while (Serial.read() == -1) ;
  while (Serial.read() != -1) ;
}

Hope this helps...
 
Hey @wwatson,

I downloaded your library,i had another one wich certainly made conflicts,pulled it away,
then i tried to adapt a simple sketch including the ILI934 fonts,but have 2 kinds of errors:
First ones,when i include the ILI9341 fonts before RA8876 like that:
Code:
#include <SPI.h>
#include "Arduino.h"
#include <ILI9341_t3.h>
#include <font_CourierNewBold.h>
#include <font_CourierNewBoldItalic.h>
#include <font_CourierNew.h>
#include <font_CourierNewItalic.h>
#include "RA8876_Config_SPI.h"
#include <RA8876_t3.h>


RA8876_t3 tft = RA8876_t3(RA8876_CS, RA8876_RESET); //Using standard SPI pins

void setup() {
Serial.begin(115200);
  while (!Serial && millis() < 1000) {} //wait for Serial Monitor

#if defined(USE_SPI_47000000)
  tft.begin(47000000); // Max is 47000000 MHz (using short 3" wires)
#else
  tft.begin(); // default SPI clock speed is 30000000 MHz
#endif
//*********************************************************************
  tft.graphicMode(true); // Not really needed for text output but setting
                         // it to false turns off graphics mode.
//**********************************************************************

  tft.begin();
  tft.setRotation(1);
  tft.fillScreen(ILI9341_BLACK);
  tft.setTextColor(ILI9341_YELLOW);
  //tft.setTextSize(2);
  //tft.println("Waiting for Arduino Serial Monitor...");

 
  int xx = 10;
  tft.setFont(CourierNew_48);
  tft.setCursor(xx, 4);
  tft.print("Courier");
  tft.setCursor(xx, 61);
  tft.setFont(CourierNew_48_Bold);
  tft.print("Courier");
  tft.setCursor(xx, 122);
  tft.setFont(CourierNew_48_Italic);
  tft.print("Courier");
  tft.setCursor(xx, 183);
  tft.setFont(CourierNew_48_Bold_Italic);
  tft.print("Courier");
}

void loop(void) {
}
Give -> Errors:
Code:
In file included from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:87,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from C:\Users\trans\AppData\Local\Temp\arduino_modified_sketch_775601\sketch_oct21b.ino:9:
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/ILI9341_fonts.h:25:3: error: conflicting declaration 'typedef struct ILI9341_t3_font_t ILI9341_t3_font_t'
   25 | } ILI9341_t3_font_t;
      |   ^~~~~~~~~~~~~~~~~
In file included from C:\Users\trans\AppData\Local\Temp\arduino_modified_sketch_775601\sketch_oct21b.ino:3:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3/ILI9341_t3.h:170:3: note: previous declaration as 'typedef struct ILI9341_t3_font_t ILI9341_t3_font_t'
  170 | } ILI9341_t3_font_t;
      |   ^~~~~~~~~~~~~~~~~
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
Using library ILI9341_t3 at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3
Using library ILI9341_fonts-master at version 1.0 in folder: C:\Users\trans\Documents\Arduino\libraries\ILI9341_fonts-master
Using library TeensyRA8876-SPI-main at version 1.0.0 in folder: C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main
Using library TeensyRA8876-GFX-Common-main at version 1.0.0 in folder: C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main
Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire
Second ones,when i include the ILI9341 fonts after RA8876 like that:
Code:
#include <SPI.h>
#include "Arduino.h"
#include "RA8876_Config_SPI.h"
#include <RA8876_t3.h>
#include <ILI9341_t3.h>
#include <font_CourierNewBold.h>
#include <font_CourierNewBoldItalic.h>
#include <font_CourierNew.h>
#include <font_CourierNewItalic.h>

...the sketch is the same after this
Gives -> Errors:
Code:
In file included from C:\Users\trans\AppData\Local\Temp\arduino_modified_sketch_595963\sketch_oct21b.ino:5:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\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\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:87,
                 from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from C:\Users\trans\AppData\Local\Temp\arduino_modified_sketch_595963\sketch_oct21b.ino:4:
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\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;
      |   ^~~~~~~~~~~~~~~~~
In file included from C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from C:\Users\trans\AppData\Local\Temp\arduino_modified_sketch_595963\sketch_oct21b.ino:4:
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:956:29: error: redefinition of 'class RA8876_Button'
  956 | #define Adafruit_GFX_Button RA8876_Button
      |                             ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3/ILI9341_t3.h:560:7: note: in expansion of macro 'Adafruit_GFX_Button'
  560 | class Adafruit_GFX_Button {
      |       ^~~~~~~~~~~~~~~~~~~
C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:957:7: note: previous definition of 'class RA8876_Button'
  957 | class RA8876_Button {
      |       ^~~~~~~~~~~~~
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
Using library TeensyRA8876-SPI-main at version 1.0.0 in folder: C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-SPI-main
Using library TeensyRA8876-GFX-Common-main at version 1.0.0 in folder: C:\Users\trans\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main
Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire
Using library ILI9341_t3 at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3
Using library ILI9341_fonts-master at version 1.0 in folder: C:\Users\trans\Documents\Arduino\libraries\ILI9341_fonts-master
 
@AntiLoop - You cannot include the ILI9341_t3 library as it is not designed for the RA8876:( Also note that ILI9341_BLACK and ILI9341_YELLOW are defined in the ILI9341_t3 library so they will NOT work as well. you need to use:
Code:
#define COLOR65K_BLACK         0x0000
#define COLOR65K_WHITE         0xffff
#define COLOR65K_RED           0xf800
#define COLOR65K_LIGHTRED      0xfc10
#define COLOR65K_DARKRED       0x8000
#define COLOR65K_GREEN         0x07e0
#define COLOR65K_LIGHTGREEN    0x87f0
#define COLOR65K_DARKGREEN     0x0400
#define COLOR65K_BLUE          0x001f
#define COLOR65K_BLUE2         0x051f
#define COLOR65K_LIGHTBLUE     0x841f
#define COLOR65K_DARKBLUE      0x0010
#define COLOR65K_YELLOW        0xffe0
#define COLOR65K_LIGHTYELLOW   0xfff0
#define COLOR65K_DARKYELLOW    0x8400
#define COLOR65K_CYAN          0x07ff
#define COLOR65K_LIGHTCYAN     0x87ff
#define COLOR65K_DARKCYAN      0x0410
#define COLOR65K_MAGENTA       0xf81f
#define COLOR65K_LIGHTMAGENTA  0xfc1f
#define COLOR65K_DARKMAGENTA   0x8010
#define COLOR65K_BROWN         0xA145
or:
Code:
#define BLACK        0x0000
#define WHITE        0xffff
#define RED            0xf800
#define LIGHTRED    0xfc10
#define CRIMSON        0x8000
#define GREEN        0x07e0
#define PALEGREEN    0x87f0
#define DARKGREEN    0x0400
#define BLUE        0x001f
#define LIGHTBLUE    0x051f
#define SKYBLUE        0x841f
#define DARKBLUE    0x0010
#define YELLOW        0xffe0
#define LIGHTYELLOW    0xfff0
#define DARKYELLOW    0x8400 // mustard
#define CYAN        0x07ff
#define LIGHTCYAN    0x87ff
#define DARKCYAN    0x0410
#define MAGENTA        0xf81f
#define VIOLET        0xfc1f
#define BLUEVIOLET    0x8010
#define ORCHID        0xA145

These are defined in "TeensyRA8876-SPI/src/RA8876Registers.h" file.
I modified your sketch seen here:
Code:
#include <SPI.h>
#include "Arduino.h"
//#include <ILI9341_t3.h> // <------------- Library not designed for the RA8876. It's incompatible...
#include <font_CourierNewBold.h>
#include <font_CourierNewBoldItalic.h>
#include <font_CourierNew.h>
#include <font_CourierNewItalic.h>
#include "RA8876_Config_SPI.h"
#include <RA8876_t3.h>


RA8876_t3 tft = RA8876_t3(RA8876_CS, RA8876_RESET); //Using standard SPI pins

void setup() {
Serial.begin(115200);
  while (!Serial && millis() < 1000) {} //wait for Serial Monitor

#if defined(USE_SPI_47000000)
  tft.begin(47000000); // Max is 47000000 MHz (using short 3" wires)
#else
  tft.begin(); // default SPI clock speed is 30000000 MHz
#endif
//*********************************************************************
  tft.graphicMode(true); // Not really needed for text output but setting
                         // it to false turns off graphics mode.
//**********************************************************************

  tft.begin();
  tft.setRotation(1);
  tft.fillScreen(BLACK); // <------------- ILI9341_BLACK is NOT defined in the RA8876 library. Use COLOR65K_BLACK or BLACK...
  tft.setTextColor(YELLOW); // <------------- ILI9341_YELLOW is NOT defined in the RA8876 library. Use COLOR65K_YELLOW or YELLOW...
  //tft.setTextSize(2);
  //tft.println("Waiting for Arduino Serial Monitor...");

 
  int xx = 10;
  tft.setFont(CourierNew_48);
  tft.setCursor(xx, 4);
  tft.print("Courier");
  tft.setCursor(xx, 61);
  tft.setFont(CourierNew_48_Bold);
  tft.print("Courier");
  tft.setCursor(xx, 122);
  tft.setFont(CourierNew_48_Italic);
  tft.print("Courier");
  tft.setCursor(xx, 183);
  tft.setFont(CourierNew_48_Bold_Italic);
  tft.print("Courier");
}

void loop(void) {
}

and it it compiles and works without error. Give it a try. It also works with all four rotations 0 to 3:)
 
WWatson.... Please remember I am NOT a programmer or hardware engineer. I know enough to make me dangerous.. Only two T4.1's were harmed during my testing... and I still have all my fingers... That said...

When I was doing the testing I ran into the same issue (with NO modified files). My errors were pretty much identical except for the file locations. I just ran them again today and the same result.
I spent a little time trying to chase the problem but the information (How to get your display working) that you and KurtE gave me in this post allowed me progress to the point that I did not need to get that sketch working. I now have pictures, buttons, and sliders on several different pages within my sketch... Again Thanks for your help.

Back to Antiloop's problem. In the "TeensyRA8876-GFX-Common-main" folder and in file "RA8876_common.h" There are 4 references to "ILI9341"
Line 86 and 87
Code:
/* Addins for ILI and GFX Fonts */
#include "ILI9341_fonts.h"

Line 675
Code:
   void setFont(const ILI9341_t3_font_t &f);

Line 900

Code:
    const ILI9341_t3_font_t *font;

Lines 947 - 951 a note...

Code:
// To avoid conflict when also using Adafruit_GFX or any Adafruit library
// which depends on Adafruit_GFX, #include the Adafruit library *BEFORE*
// you #include ILI9341_t3.h.
// Warning the implemention of class needs to be here, else the code
// compiled in the c++ file will cause duplicate defines in the link phase.

If I look at the "ILI9341_fonts.h" file there is a single... well... not sure what it is called... thingy on lines 7-25. the main error emphasis is line 25. "} ILI9341_t3_font_t;".

Code:
typedef struct {
    const unsigned char *index;
    const unsigned char *unicode;
    const unsigned char *data;
    unsigned char version;
    unsigned char reserved;
    unsigned char index1_first;
    unsigned char index1_last;
    unsigned char index2_first;
    unsigned char index2_last;
    unsigned char bits_index;
    unsigned char bits_width;
    unsigned char bits_height;
    unsigned char bits_xoffset;
    unsigned char bits_yoffset;
    unsigned char bits_delta;
    unsigned char line_space;
    unsigned char cap_height;
} ILI9341_t3_font_t;

SECOND Error message from my computer (see below for complete error message in order)

Code:
In file included from d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:87,
                 from d:\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:8:
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\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;
      |   ^~~~~~~~~~~~~~~~~

This same words in line 25 above and also in the main "Teensy Package" under libraries... has a ILI9341_t3.h
"C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3" Lines 152 - 170.
Mainly looking at line 170. "} ILI9341_t3_font_t;"

Code:
typedef struct {
    const unsigned char *index;
    const unsigned char *unicode;
    const unsigned char *data;
    unsigned char version;
    unsigned char reserved;
    unsigned char index1_first;
    unsigned char index1_last;
    unsigned char index2_first;
    unsigned char index2_last;
    unsigned char bits_index;
    unsigned char bits_width;
    unsigned char bits_height;
    unsigned char bits_xoffset;
    unsigned char bits_yoffset;
    unsigned char bits_delta;
    unsigned char line_space;
    unsigned char cap_height;
} ILI9341_t3_font_t;

Complete Error message.

Code:
In file included from C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/font_Arial.h:4,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:9:
C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.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 d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:87,
                 from d:\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:8:
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\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;
      |   ^~~~~~~~~~~~~~~~~
In file included from d:\Documents\Arduino\libraries\TeensyRA8876-SPI-main\src/RA8876_t3.h:79,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main\examples\graphics\graphics.ino:8:
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:956:29: error: redefinition of 'class RA8876_Button'
  956 | #define Adafruit_GFX_Button RA8876_Button
      |                             ^~~~~~~~~~~~~
C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/ILI9341_t3.h:560:7: note: in expansion of macro 'Adafruit_GFX_Button'
  560 | class Adafruit_GFX_Button {
      |       ^~~~~~~~~~~~~~~~~~~
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main\src/RA8876_common.h:957:7: note: previous definition of 'class RA8876_Button'
  957 | class RA8876_Button {
      |       ^~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1

This is as far as I could get.... I cant tell you why the compiler has a cow and tries to load the "ILI9341_t3.h" it just runs code... This is way above my pay grade to figure out... Just giving info hoping it helps...

But, just so I am clear. I downloaded the zip files from Github on 9/7/2024. I removed any of those from the Arduino library and unziped fresh copies of the files to make sure I had not change one.
 
Forgot to mention one more thing.

When I get an error during compile of my display sketch, I also get a warning/message that I have duplicate libraries for the "ILI9341_fonts.h". All 3 files that have duplicates are in the Teensy Package. I don't get the warning if the code compiles correctly. I removed a semicolon in my code to get an error so you can see the message. The base code you provided but it is modified for my needs. Just a note: I removed your 3 base files (8080, SPI, and Common) from the library before I compiled or else I get several more duplicates.

Code:
D:\Documents\Arduino\libraries\Daniel_RA8876-GT9271\examples\RA8876_GT9271_RTC_Clock_10-21-2024\RA8876_GT9271_RTC_Clock_10-21-2024.ino: In function 'void setup()':
D:\Documents\Arduino\libraries\Daniel_RA8876-GT9271\examples\RA8876_GT9271_RTC_Clock_10-21-2024\RA8876_GT9271_RTC_Clock_10-21-2024.ino:132:3: error: expected primary-expression before '}' token
  132 |   }
      |   ^
D:\Documents\Arduino\libraries\Daniel_RA8876-GT9271\examples\RA8876_GT9271_RTC_Clock_10-21-2024\RA8876_GT9271_RTC_Clock_10-21-2024.ino:131:11: error: expected ';' before '}' token
  131 |     return
      |           ^
      |           ;
  132 |   }
      |   ~       
Multiple libraries were found for "ILI9341_fonts.h"
  Used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9488_t3
  Not used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ST7735_t3
  Not used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\RA8875
exit status 1

Compilation error: expected primary-expression before '}' token
 
@DJETH - In no case should ILI9341_t3.h be included with usage of the RA8876 libraries. ILI9341_fonts are a separate library from ILI9341_t3. Including ILI9341_t3.h will cause the errors you are seeing. The only place you will see ILI9341_t3.h is in line 949 of RA8876_common.h in a remark that only applied to the ILI9341_t3 library and I will be removing it.

As for your last post:
Code:
Multiple libraries were found for "ILI9341_fonts.h"
  Used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9488_t3
  Not used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ST7735_t3
  Not used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\RA8875

This is just informational. It's letting you know which library the compiler chose to use :) It helps in debugging errors.

By the way, I have updated all 3 RA8876 libraries up on GitHub in the last few days...
 
WWatson,
@DJETH - In no case should ILI9341_t3.h be included with usage of the RA8876 libraries. ILI9341_fonts are a separate library from ILI9341_t3. Including ILI9341_t3.h will cause the errors you are seeing. The only place you will see ILI9341_t3.h is in line 949 of RA8876_common.h in a remark that only applied to the ILI9341_t3 library and I will be removing it.

If "ILI9341_t3" should not be used why is the compiler trying to load it from the ILI9341_t3 Package Library and how do we prevent this so there is not an error? Or Do I need too?

There are 3 times where the compiler is trying this ... Note: Just uploaded and this is from your latest libraries.

Code:
1 - In file included from C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/font_Arial.h:4,
2 - C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/ILI9341_t3.h:170:3: error: conflicting declaration 'typedef struct ILI9341_t3_font_t ILI9341_t3_font_t'
3 - C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/ILI9341_t3.h:560:7: note: in expansion of macro 'Adafruit_GFX_Button'

Complete error log
Code:
In file included from C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/font_Arial.h:4,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\examples\graphics\graphics.ino:9:
C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.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 d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main-10-21-2024\src/RA8876_common.h:87,
                 from d:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\src/RA8876_t3.h:79,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\examples\graphics\graphics.ino:8:
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main-10-21-2024\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;
      |   ^~~~~~~~~~~~~~~~~
In file included from d:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\src/RA8876_t3.h:79,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\examples\graphics\graphics.ino:8:
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main-10-21-2024\src/RA8876_common.h:956:29: error: redefinition of 'class RA8876_Button'
  956 | #define Adafruit_GFX_Button RA8876_Button
      |                             ^~~~~~~~~~~~~
C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/ILI9341_t3.h:560:7: note: in expansion of macro 'Adafruit_GFX_Button'
  560 | class Adafruit_GFX_Button {
      |       ^~~~~~~~~~~~~~~~~~~
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main-10-21-2024\src/RA8876_common.h:957:7: note: previous definition of 'class RA8876_Button'
  957 | class RA8876_Button {
      |       ^~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1
 
Last edited:
@wwatson,
Good news,it's all working now :)
My mistake was to think that if i want to use and external ILI9341 font i have to call the ILI9341 library,
but apparently it's not necessary,but i know sometimes we have to do it for some kind of fonts,
also i'm wondering if in your RA8876 library there had not been any call fo ILI9341 fonts,there will not have been
any declaration conflicts if i include <ILI9341_t3.h>,

@DJETH,
I think you pointed it to,somewhere you're right

Wouldn't it be better to directly include those external fonts in the RA8876 library?
is this a question of copyright?
Anyway,thanks @wwatson you,i'm glad to know i can use my 10" display in a better way.
 
WWatson,


If "ILI9341_t3" should not be used why is the compiler trying to load it from the ILI9341_t3 Package Library and how do we prevent this so there is not an error? Or Do I need too?

There are 3 times where the compiler is trying this ... Note: Just uploaded and this is from your latest libraries.

Code:
1 - In file included from C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/font_Arial.h:4,
2 - C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/ILI9341_t3.h:170:3: error: conflicting declaration 'typedef struct ILI9341_t3_font_t ILI9341_t3_font_t'
3 - C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/ILI9341_t3.h:560:7: note: in expansion of macro 'Adafruit_GFX_Button'

Complete error log
Code:
In file included from C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/font_Arial.h:4,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\examples\graphics\graphics.ino:9:
C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.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 d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main-10-21-2024\src/RA8876_common.h:87,
                 from d:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\src/RA8876_t3.h:79,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\examples\graphics\graphics.ino:8:
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main-10-21-2024\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;
      |   ^~~~~~~~~~~~~~~~~
In file included from d:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\src/RA8876_t3.h:79,
                 from D:\Documents\Arduino\libraries\TeensyRA8876-SPI-main 10-21-2024\examples\graphics\graphics.ino:8:
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main-10-21-2024\src/RA8876_common.h:956:29: error: redefinition of 'class RA8876_Button'
  956 | #define Adafruit_GFX_Button RA8876_Button
      |                             ^~~~~~~~~~~~~
C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9341_t3/ILI9341_t3.h:560:7: note: in expansion of macro 'Adafruit_GFX_Button'
  560 | class Adafruit_GFX_Button {
      |       ^~~~~~~~~~~~~~~~~~~
d:\Documents\Arduino\libraries\TeensyRA8876-GFX-Common-main-10-21-2024\src/RA8876_common.h:957:7: note: previous definition of 'class RA8876_Button'
  957 | class RA8876_Button {
      |       ^~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1
Do you have https://github.com/wwatson4506/ILI9341_fonts in your "Arduino/libraries" folder? I added that to the documentation to solve @AntiLoop issue...
 
Wouldn't it be better to directly include those external fonts in the RA8876 library?
is this a question of copyright?
@AntiLoop - No it would not. First of all the RA8876 libraries are very large now. Secondly, every time the ILI9341_fonts library which by the way belongs to @mjs513 I would have to change my RA8876 libraries. I assume the font structure from the ILI9341_t3 library is included in ILI9341_fonts library to avoid having to include the whole ILI9341 library it would seem.
I hope that makes sense :)
 
WWatson... Sorry missed that info. I have added it to my library and now get no issue during compile. Thanks for the help
 
Back
Top