Go Down

Topic: Anyone have ST7781 library for DUE ? - (no SPI) (Read 213 times) previous topic - next topic

AndreK

I have this display:

http://www.smokeandwires.co.nz/blog/a-2-4-tft-touchscreen-shield-for-arduino/

The library does not have DUE support: https://github.com/Smoke-And-Wires/TFT-Shield-Example-Code/tree/master/SWTFT-Shield

with some luck, someone here have some code already...


david_prentice

Install MCUFRIEND_kbv via the Library Manager.

AndreK

tried it's GLUE demo, won't compile

Code: [Select]
/home/andre/Arduino/projects/libraries/MCUFRIEND_kbv/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino:26:38: warning: large integer implicitly truncated to unsigned type [-Woverflow]
 UTFTGLUE myGLCD(0x0154,A2,A1,A3,A4,A0);
                                      ^
Using library Adafruit_GFX_Library at version 1.2.2 in folder: /home/andre/Arduino/projects/libraries/Adafruit_GFX_Library
Using library MCUFRIEND_kbv at version 2.9.7 in folder: /home/andre/Arduino/projects/libraries/MCUFRIEND_kbv

david_prentice

Go on.   Try the proper examples.

Or at least copy-paste the error report.

David.

AndreK

right in the beginning of the example sketch it says:
"and the code is compatible with both UNO and Mega board."

https://gist.github.com/AndKe/6ef0d33cdc3535d4cc24519b506ab457

david_prentice

#6
Apr 15, 2018, 11:33 pm Last Edit: Apr 15, 2018, 11:34 pm by david_prentice
right in the beginning of the example sketch it says:
"and the code is compatible with both UNO and Mega board."

https://gist.github.com/AndKe/6ef0d33cdc3535d4cc24519b506ab457
Thanks for the link.   That was a problem with UTFTGLUE.h finding avr/dtostrf.h on non-AVR targets.   
It was fixed on 19 Jan in the current Beta on GitHub.    I intend to issue a new Release of the library this week.

Please run the proper library examples.   

David.

AndreK

thank you for your patience, but I've tried a lot of those examples, and can't find one that seems supposed to work with this non-spi display + DUE.

david_prentice

Please explain:
which library
which example

I have a similar Mcufriend Shield with ST7781 and a Due.
So I can attempt to replicate any problem

But only if I know what you are using.

David.

Go Up