-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SD card and Display on the same SPI bus #37
Comments
Sorry about the formatting... |
@loboris No reference on how to use these functions as well
|
Yes please give guidance on using your driver alongside touch controllers and SD cards on SPI at the same time. |
Any news on this topic? I don't get TFT Display, SD Card and PSRAM, all on SPI bus (using this library for TFT and SD card, and the esp-idf SPI library for PSRAM), running at the same time. Component by component is fine. |
Hi, The problem is that spi clock speed after using sd card is changed or other settings, because when |
I found workaround, but its very ugly. After using sd card i am doing this:
|
Hi, i'm trying to use 2 devices on one bus. TFT as 1rst device works fine. When I call spi_lobo_device_select() for 2nd device the function calls spi_lobo_bus_free(1, 0): |
I tried using SD write every 30 seconds along with display. I took care of CS select and deselect of the display when writing to the SD. Display seems to freeze and never recovers. Below is my sample code. Did anyone try writing to SD card periodically while displaying something? Thank you for the help.
`
while (1)
{
Wait(10000);
if(waitSDwrite>3)
{
Wait(1000);
// ==== Test select/deselect ====
int ret = spi_lobo_device_deselect(spi);
assert(ret==ESP_OK);
waitSDwrite = 0;
test_sd_card();
ret = spi_lobo_device_select(spi, 1);
assert(ret==ESP_OK);
Wait(1000);
}
else
{
TFT_fillWindow(TFT_BLACK);
_fg = TFT_RED;
TFT_print("Hello World\n", CENTER, CENTER);
waitSDwrite++;
}
}
`
The text was updated successfully, but these errors were encountered: