ImpulseAdventure / Waveshare_ILI9486

Arduino library for Waveshare ILI9486 supporting the Waveshare 3.5" & 4" TFT Touch Shields for Arduino. Includes GFX-compatible API and touchscreen driver
MIT License
66 stars 8 forks source link

Calls to SPI.writeByte is not supported by native Arduino library #10

Open Mega-mania opened 3 years ago

Mega-mania commented 3 years ago

Hi,

I have installed GUIslice to be used on an ATMega2560 with a Waveshare 4.0 Inch touch display. On compiling the code I found the ILI9486 library makes calls to the SPI library ( SPI.writeByte ) that are not supported by the native Arduino SPI library.

What should I do?

stormy-gh commented 1 year ago

Arduino SPI library do not support function SPI.writeByte. You must use SPI.transfer instead. You may apply attached patch (please remove .txt extension - Github does not accept patch files)

Waveshare_ILI9486.patch.txt