ESP32 + 3.5' TFT LCD Panel OpenSmart

FloppyEggplant
Posts: 1
Joined: Sun Jun 20, 2021 3:10 am

ESP32 + 3.5' TFT LCD Panel OpenSmart

Postby FloppyEggplant » Sun Jun 20, 2021 3:20 pm

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
Attachments
showBMP_kbv_as7_alt.7z
Code - Arduino File
(2.84 KiB) Downloaded 284 times
esp32_lcd.png
Schematics
esp32_lcd.png (52.38 KiB) Viewed 2710 times
libraries.7z
Libraries in Documents/Arduino/libraries
(1.55 MiB) Downloaded 265 times

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 + 3.5' TFT LCD Panel OpenSmart

Postby ESP_Sprite » Mon Jun 21, 2021 1:13 am

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.

Who is online

Users browsing this forum: Basalt and 65 guests