0

TFTLCD library with metro m4 Express
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

TFTLCD library with metro m4 Express

by AlanCCR on Mon Mar 22, 2021 9:08 pm

Hello,
how can i get adafruit lcdtft library to run with metro m4 express?

AlanCCR
 
Posts: 5
Joined: Tue Mar 02, 2021 6:28 pm

Re: TFTLCD library with metro m4 Express

by AlanCCR on Tue Mar 23, 2021 8:12 am

txt file with compiling error is attached
Attachments
metro m4 express tftlcd err.txt
(108.13 KiB) Downloaded 8 times

AlanCCR
 
Posts: 5
Joined: Tue Mar 02, 2021 6:28 pm

Re: TFTLCD library with metro m4 Express

by mikeysklar on Wed Mar 24, 2021 3:34 pm

It looks like the compile is getting hung up on the ZeroDMA library.

Is there a particular LCD you are looking to drive with your M4 Metro Express? Which example code are you building?

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Re: TFTLCD library with metro m4 Express

by AlanCCR on Wed Mar 24, 2021 4:17 pm

Hello,
This modell of Display https://www.az-delivery.de/en/products/ ... 0e4f&_ss=r
I have tried it with the grafiktest sketch in adafruit TFTLCD library in arduino

AlanCCR
 
Posts: 5
Joined: Tue Mar 02, 2021 6:28 pm

Re: TFTLCD library with metro m4 Express

by mikeysklar on Thu Mar 25, 2021 11:17 am

It looks like your display is based on the ILI9341 so I would try and follow our guide for the this size TFT and chip type. You are on your own for making it work as this is not our product.

https://learn.adafruit.com/adafruit-2-4 ... fx-library

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Re: TFTLCD library with metro m4 Express

by AlanCCR on Thu Mar 25, 2021 1:23 pm

Thank you,
I read through it, but the question wasn't about the display, it works with the TFTLCD library on the arduino Uno well.
Not working does adafruit TFTLCD library on Metro M4 express. I wanted to know how I can get the library up and running.


Code: Select all | TOGGLE FULL SIZE
In file included from D:\ARDUINO\libraries\Adafruit_TFTLCD_Library\Adafruit_TFTLCD.cpp:17:
D:\ARDUINO\libraries\Adafruit_TFTLCD_Library\pin_magic.h:467:2: error: #error "Board type unsupported / not recognized"
  467 | #error "Board type unsupported / not recognized"
      |  ^~~~~
D:\ARDUINO\libraries\Adafruit_TFTLCD_Library\Adafruit_TFTLCD.cpp: In constructor 'Adafruit_TFTLCD::Adafruit_TFTLCD(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
D:\ARDUINO\libraries\Adafruit_TFTLCD_Library\Adafruit_TFTLCD.cpp:44:3: error: '_reset' was not declared in this scope; did you mean 'reset'?
   44 |   _reset = reset;
      |   ^~~~~~
      |   reset

AlanCCR
 
Posts: 5
Joined: Tue Mar 02, 2021 6:28 pm

Re: TFTLCD library with metro m4 Express

by mikeysklar on Fri Mar 26, 2021 11:19 am

Based on your original compile errors your ZeroDMA library is v1.0.4, but the current release is v1.0.8.

https://github.com/adafruit/Adafruit_ZeroDMA

I think the wrapper addition might help you get going. Let me know if TFTLCD can build with the newer ZeroDMA.

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Re: TFTLCD library with metro m4 Express

by AlanCCR on Sat Mar 27, 2021 1:56 pm

Hello,
I have installed zero dma lib. Error from zero dma seems to be gone,
but still lots of errors from TFTLCD library.
Attachments
err tftlcd metro m4 270321.txt
(145.08 KiB) Downloaded 4 times

AlanCCR
 
Posts: 5
Joined: Tue Mar 02, 2021 6:28 pm

Re: TFTLCD library with metro m4 Express

by mikeysklar on Mon Mar 29, 2021 11:19 am

I don't see the TFTLCD library being compatible with any of the M0/M4 boards. There is nothing pin_magic.h that will accomidate the newer processors.

You will have to use our ILI9341 libraries or go back to an older Uno/Mega/Due board for TFTLCD library support.

mikeysklar
 
Posts: 4508
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.