Bug in Teensy version of UTFT library & Teensy 3.5

geostep

Member
Hi All,

Sorry but I'm ignorant as to how to formally report this bug. I have verified it and the fix as well.

What: Teensy compatible UTFT library Paul included in Teensyduino version 1.32 and newer.
How: Failure to compile said UTFT library and a Teensy 3.5.
Problem: typo on line 77 of UTFT.cpp

I could not compile the UTFT library with a Teensy 3.5. I'd get the following error:


C:\Users\George\Arduino Main\Arduino1.6.12\hardware\teensy\avr\libraries\UTFT\UTFT.cpp:81:4: error: #error "Unsupported ARM MCU!"

#error "Unsupported ARM MCU!"

^

Error compiling for board Teensy 3.5.


However, UTFT would compile fine with Teensy 3,1, 3.2 and 3.6. This made me suspect a wrong board definition or something similar.

Line 77 of Paul's UTFT.cpp is as follows:

#elif defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK66FX512__) || defined(__MK66FX1M0__)

The definition for the Teensy 3.5 is incorrect. It should read MK64FX512, NOT MK66FX512.

I changed the definition and was able to successfully compile UTFT with a Teensy 3.5.

It needs updated for future releases.

- George
 
Back
Top