cbm80amiga / ST7789_AVR

Fast SPI library for the ST7789 IPS display optimized for AVR Arduinos
GNU General Public License v3.0
20 stars 1 forks source link

TFT_MOSI and TFT_SCLK #4

Closed step135 closed 2 months ago

step135 commented 2 months ago

I want to use it on ESP32 CAM and I am not able to define those pins.

cbm80amiga commented 2 months ago

This library is optimized for AVR chips. But in compatiblity mode it uses regular Arduino hardware SPI library, so maybe it will work in such mode on ESP32.

step135 commented 2 months ago

I am not asking if it will work or not. My question was where to define those pins.

cbm80amiga commented 1 month ago

AVR Arduino has only 1 hardware SPI and you cannot define any MOSI/MISO/SCLK pins. STM32 has 2 SPIs but you cannot define pins, too. I don't know how it is solved in ESP32, check documentation to SPI library for this MCU. But I think it will be easier to use other library for ESP32 or ESP8266, I believe there are a few of them supporting most LCD controllers.