PaulStoffregen / ILI9341_t3

Optimized ILI9341 TFT Library
http://pjrc.com/store/display_ili9341.html
242 stars 95 forks source link

ILI9341_t3 #69

Open l0rdnic0 opened 2 years ago

l0rdnic0 commented 2 years ago

Hello Paul,

Do you have any plans on updating this to support Teensey 4.0 boards? I am trying to follow a guide on Adafruit (https://learn.adafruit.com/animated-electronic-eyes/customizing) abd doing everything in the guide, but I'm using a teensey 4.0 board as I could not buy a 3.2 or 3.6 because of stocking shortages. When I compile I receive the following output.

uncannyEyes: In function 'void drawEye(uint8_t, uint16_t, uint8_t, uint8_t, uint8_t, uint8_t)': uncannyEyes:466: error: 'KINETISK_SPI0' was not declared in this scope while(KINETISK_SPI0.SR & 0xC000); // Wait for space in FIFO ^ uncannyEyes:467: error: 'KINETISK_SPI0' was not declared in this scope KINETISK_SPI0.PUSHR = p | SPI_PUSHR_CTAS(1) | SPI_PUSHR_CONT; ^ uncannyEyes:467: error: 'SPI_PUSHR_CTAS' was not declared in this scope KINETISK_SPI0.PUSHR = p | SPI_PUSHR_CTAS(1) | SPI_PUSHR_CONT; ^ uncannyEyes:467: error: 'SPI_PUSHR_CONT' was not declared in this scope KINETISK_SPI0.PUSHR = p | SPI_PUSHR_CTAS(1) | SPI_PUSHR_CONT; ^ uncannyEyes:504: error: 'KINETISK_SPI0' was not declared in this scope KINETISK_SPI0.SR |= SPI_SR_TCF; // Clear transfer flag ^ uncannyEyes:504: error: 'SPI_SR_TCF' was not declared in this scope KINETISK_SPI0.SR |= SPI_SR_TCF; // Clear transfer flag ^ 'KINETISK_SPI0' was not declared in this scope

I am using Arduino 1.8.13, the recommended teensy board versions and the required "Using the Arduino Library Manager (Sketch→Include Library→Library Manager…) install Adafruit_GFX, Adafruit_BusIO and Adafruit_ZeroDMA, plus the library compatible with your display: Adafruit_SSD1351 for the OLED display, Adafruit_ST7735 for TFT LCD."

I have the Adafruit_ST7735 for TFT LCD.

I have validated that the config.h to ensure I have the TFT driver in use.

//#include // OLED display library -OR-

include // TFT display library (enable one only)

I should add that if I try to compile for 3.2 or 3.6 the sketch does compile.

Best regards, Shawn