You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by embedded-kiddie September 12, 2024
First of all, thank you for providing us with such a great library.
I am currently working on building a project that will display the images from a camera on an LCD display and save the images to an SD card when I touch the screen.
So I changed the graphics library to LovyanGFX (I recently ran benchmarks of the major graphics libraries and I found LovyanGFX is the fastest in every category!), and now I'm facing an issue where the display and touchscreen stops working when accessing the SD card.
Just to be sure, is there an SD card (TF card) connected on the same SPI bus?
If an SD card is present and you have not gone through the procedure to change the SD to SPI mode, the SD card may malfunction and prevent communication with the display.
To simplify this issue, I ran the SavePNG, but it stopped after displaying PNG save test.
And when I tried inserting SPI.begin(...) just before do {...} while (...); as shown below, a white square PNG image was saved (I think this means the save failed), but also the message PNG save success. was not displayed.
// Initialize SD card interface
SPI.begin(TFT_SCLK, TFT_MISO, TFT_MOSI, SD_CS);
do {
SD.end();
delay(1000);
SD.begin(SDCARD_SS_PIN, SDCARD_SPI, SPI_READ_FREQUENCY);
} while (!saveToSD());
Please help me to solve this issue.
Thanks in advance.
Here is the information about my development environment.
In the case of TFT_eSPI, I could not find a way to change the host of the SPI bus, so instead I adjusted the SPI of the SD to TFT_eSPI as follows, which worked.
Hi there,
I started a discussion here and with the help by @tobozo I've narrowed down the problem but it's still not resolved so I decided to open an issue.
Discussed in #616
Originally posted by embedded-kiddie September 12, 2024
First of all, thank you for providing us with such a great library.
I am currently working on building a project that will display the images from a camera on an LCD display and save the images to an SD card when I touch the screen.
Using Adafruit's ST7789 driver and GFX library, as well as the XPT2046 touchscreen library, I have confirmed that basic functions work.
So I changed the graphics library to LovyanGFX (I recently ran benchmarks of the major graphics libraries and I found LovyanGFX is the fastest in every category!), and now I'm facing an issue where the display and touchscreen stops working when accessing the SD card.
I think this issue may be related to this comment by @lovyan03:
To simplify this issue, I ran the SavePNG, but it stopped after displaying
PNG save test
.And when I tried inserting
SPI.begin(...)
just beforedo {...} while (...);
as shown below, a white square PNG image was saved (I think this means the save failed), but also the messagePNG save success.
was not displayed.Please help me to solve this issue.
Thanks in advance.
Here is the information about my development environment.
Development environment
My custom
LGFX_XIAO_ESP32S3_ST7789.hpp
My custom
LGFX_XIAO_ESP32S3_ST7789.hpp
Modified
SavePNG.ino
Modified
SavePNG.ino
Wiring of my camera system
LMX90640-XIAO-ESP32-2.4 (Ver.2)
The text was updated successfully, but these errors were encountered: