Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Teensy 3.6 + UTFT (latest Versio 283)+ ILI9341 (16bit): Can't compile

Hybrid View

  1. #1
    Junior Member
    Join Date
    Feb 2020
    Location
    Schleswig, Germany
    Posts
    1

    Teensy 3.6 + UTFT (latest Versio 283)+ ILI9341 (16bit): Can't compile

    Hi,
    just got my first teensy 3.6 a week ago and wanted to connect an ILI9341 (16bit) TFT display to it. But I run into some problems. The UTFT library installed by Teensyduino seems to be very old and does not support my display, so I installed the latest UTFT library from Rinky-Dink Electronics (http://www.rinkydinkelectronics.com/library.php?id=51) witch does support it, but all I get are errors if I try to compile it:

    Code:
    #include "UTFT.h"
    
    void setup() {
      // put your setup code here, to run once:
    
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
    
    }
    Error messages:

    Code:
    Arduino: 1.8.11 (Windows 10), TD: 1.50, Board: "Teensy 3.6, Serial + MIDI, 180 MHz, Faster, German"
    
    In file included from Y:\Dokumente\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from Y:\Dokumente\Arduino\UTFT-Test\UTFT-Test.ino:1:
    
    Y:\Dokumente\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\andre\AppData\Local\Temp\arduino_build_500215\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from Y:\Dokumente\Arduino\libraries\UTFT/UTFT.h:167:0,
    
                     from Y:\Dokumente\Arduino\UTFT-Test\UTFT-Test.ino:1:
    
    Y:\Dokumente\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\andre\AppData\Local\Temp\arduino_build_500215\pch\Arduino.h:6:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    In file included from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    Y:\Dokumente\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined
    
     #define pgm_read_word(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\andre\AppData\Local\Temp\arduino_build_500215/pch/Arduino.h:6,
    
                     from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition
    
     #define pgm_read_word(addr) ({ \
    
     ^
    
    In file included from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:167:0,
    
                     from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    Y:\Dokumente\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined
    
     #define pgm_read_byte(data) *data
    
     ^
    
    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,
    
                     from C:\Users\andre\AppData\Local\Temp\arduino_build_500215/pch/Arduino.h:6,
    
                     from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:166,
    
                     from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:
    
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition
    
     #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
    
     ^
    
    Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:85:4: error: #error "Unsupported ARM MCU!"
    
       #error "Unsupported ARM MCU!"
    
        ^
    
    Fehler beim Kompilieren für das Board Teensy 3.6.
    
    Dieser Bericht wäre detaillierter, wenn die Option
    "Ausführliche Ausgabe während der Kompilierung"
    in Datei -> Voreinstellungen aktiviert wäre.
    Is there a way to get this UTFT version running, or is a working version available anywhere?

    Sorry for this newbee questions...

  2. #2
    Junior Member
    Join Date
    Aug 2019
    Posts
    8
    You'll have much better luck using the ILI9341 library optimized specifically for Teensy 3.x:

    https://github.com/PaulStoffregen/ILI9341_t3

    It is also available (with examples) in the official Arduino library manager.

    Have been using this library for some time now without issue

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •