Arduino Leonardo error while compiling a code for display tft 2.4 shield

0

When I try to compile any code for my Arduino Leonardo, the following error occurs with most of the examples of libraries I tested. (This library I tested was the only one I could think of as saying that it works on Arduino Leonardo, but the others of Adafruit gave the same error):

  

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) {\

Otherwise when there is no error, white screen the same way, has anyone had this problem and managed to solve? Or is the Arduino Leonardo incompatible with the screen?

    
asked by anonymous 10.02.2018 / 17:29

1 answer

1

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

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

I did not test on Leonardo. Being sincere, even giving no error, there is the possibility of continuing as the white screen. Do you have an arduino uno or mega to test the TFT? If this works, I can see what happens with AtMega32U4 (leonardo)

I currently do not use these displays anymore. I use Nextion, a little more expensive, but worth it:   - Editor on PC (save a sdcard and TFT read it and refresh the screens)   - 4 connection wires only!

    
01.05.2018 / 18:08