bitbank2 / SPI_LCD

A simple C library for directly communicating with SPI-connected LCD displays
GNU General Public License v3.0
112 stars 24 forks source link

Arduino Sample #9

Closed Pconti31 closed 5 years ago

Pconti31 commented 5 years ago

Not sure anyone is interested but I modified existing main.c to run as a Arduino .ino program. Called it SPI_Sample.ino. It was tested on Arduino Due rev3 using AdaFruit's 2.8 tft with ILI9341 driver. Only one mod to spi_lcd.cpp changed line 187 from SPI.transferBytes(pBuf, ucRXBuf, iLen); To: SPI.transfer(pBuf, iLen); all files in the attached zip file SPI_Sample.zip

bitbank2 commented 5 years ago

I have a fix for that which I just checked in to my oled_96 repo. The SPI.transferBytes is for ESP32 while the SPI.transfer is for everything else. I just checked in a fix for this repo. Can you please merge with my latest code and do a pull request for your sample app and I'll add it.

Thanks