Closed brightproject closed 1 year ago
M5Stack library built in TFT_eSPI library version is not the latest, inevitably there will be conflicts, please choose one of the two libraries, rather than using them together.
BTW, It is better to ask such questions in our community, and only questions related to the M5Stack library itself will be addressed here
It's not really an issue - I just need the community's help. I have an example source code that is written for a m5stack device. But I don't have M5stack available, although I'm very interested in this device and maybe I'll buy myself such a thing somehow ... but later. I'm developing my own device, it's a prototype aircraft instrument - it's also based on ESP32-wroom(D0WDQ5 Rev 3) For display, I use a 2.8 inch display running on the ST7789 driver.
On the photo stm32f401ccu6 - do not pay attention, just an old photo, now this display is connected to the ESP-32 and the same picture is displayed.
![photo1687531275](https://github.com/m5stack/M5Stack/assets/1788098/6c68fd84-a2d4-4b25-b8de-9373878f599d)
I connected the display via an 8-bit parallel interface.
ESP32 + display works fine with the library TFT_eSPI @Bodmer But I can't get the example code to work on this hardware. As far as I understand, the source code includes the m5stack library using the line of code
#include <M5Stack.h>
This file includes libraries for working with buttons, tilt sensors and the display itself.#include "M5Display.h"
In this file, "miracles" happen and the fun begins for me. Actually there is a connection of the modified library * and configurations, with the necessary pins and defines.I changed the settings and paths in the file
In_eSPI_Setup.h
Changed also in
In_eSPI.cpp
I put the required files in the folder
In_eSPI_Drivers
The sketch from the example compiled successfully, the brightness is adjusted with the buttons...but the display is white. Specified in the settings fileIn_eSPI_Setup.h
such definesbut the display is still white. When I specify ESP32_parallel define
I tried to use the library files * from the tft_spy repository itself, as well as from the new version of M5CoreS3 - but there is no result.
As soon as you include the file T
#define ESP32_PARALLEL
I get an error in determining registers during compilation.FT_eSPI.h
of theTFT_eSPI
library directly in the fileM5Display.h
, you get a font error, although all links to the file are intact, the files are in folders...I understand that the problem is most likely in my low programming skills. But why is the problem so vague? Please help.