Page 1 of 1

ESP32 + 3.5' TFT LCD Panel OpenSmart

Posted: Sun Jun 20, 2021 3:20 pm
by FloppyEggplant
Hi,

I'm trying to connect an OpenSmart TFT LCD Panel (HX8357) to an ESP32 38 Pins (ESP32-D0WDQ6 Rev 1). When I use an Arduino, everything works fine (although slow and that is why I'm trying with an ESP32). The problem starts when I try to compile the program and it gives me an error avr/io.h not found.

I copied the avr library from the Arduino Library and now it shows me errors about things not declared on scope. I don't understand why as those are declared with #define CS_PIN 3.

The library that it is throwing errors is mcufriend inside the OPENSMART_TFT folder.

How can I make this work?

I've added 3 attachments:
  1. Schematics
  2. ino file with the code,
  3. Libraries

Re: ESP32 + 3.5' TFT LCD Panel OpenSmart

Posted: Mon Jun 21, 2021 1:13 am
by ESP_Sprite
Looks like that library is specifically coded against the Microchip/Atmel AVR series of microcontrollers; the ESP32 is not one of those. Try using another library that is more generically set up instead.