Arduino Leonardo error when compiling a code for the tft 2.4 Shield display

Asked

Viewed 131 times

0

When I try to compile any code for my Arduino Leonardo the following error occurs with most of the examples of libraries I have tested. (This library that I tested was the only one that I could think of that says it works in Leonardo, but the others at Adafruit made a mistake in the same way):

In file included from C: Users User Documents Arduino Libraries SPFD5408-master Spfd5408_adafruit_tftlcd.cpp:30:0:

C: Users User Documents Arduino Libraries SPFD5408-master pin_magic. h:306:33: Warning: backslash and newline separated by space

#define read8inline(result) { \

Besides, when no mistake happens, it gives white screen the same way, has anyone ever had this problem and managed to solve? Or the Arduino Leonardo is incompatible with the screen?

1 answer

1

This lib is my own, I managed to change the codes of Adafruit, to my old TFT 2.4.

But this only works with the SPFD5408 controller! In the second batch I bought, this did not work anymore, the Chinese changed to another controller.

I didn’t test it on Leonardo. Being honest, even if it doesn’t make a mistake, there is the possibility to continue as the white screen. Do you have an Arduino uno or mega to test the TFT ? If it works with this, I can see what happens with Atmega32u4 (Eonardo)

I don’t currently use these displays anymore. I use Nextion, a little more expensive, but it’s worth it: - Editor on PC (saves sdcard and TFT reads this and updates the screens) - 4 connecting wires only !

  • Thanks for the help even, but I already solved the problem downloaded the own lib of MCUFRIEND that was the mark of my display

Browser other questions tagged

You are not signed in. Login or sign up in order to post.