Hi Lobo,
What kind of touch screen is this compatible with? Resistive or capacitve? Module is question is ER-TFTM035-6, from buydisplay.com.
Thanks
Vader[BEN]
Non DMA version of the spi_master driver
- Vader_Mester
- Posts: 300
- Joined: Tue Dec 05, 2017 8:28 pm
- Location: Hungary
- Contact:
Re: Non DMA version of the spi_master driver
Code: Select all
task_t coffeeTask()
{
while(atWork){
if(!xStreamBufferIsEmpty(mug)){
coffeeDrink(mug);
} else {
xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
}
}
vTaskDelete(NULL);
}
Re: Non DMA version of the spi_master driver
Only the restitive touch (XPT2046 controllers) is supported in this example.
BTW, this is a very old example. I'm now using a different approach for non-DMA transfers using the slightly modified official esp-idf spi-master driver.
I hope I'll find some time to update the repository or create the new example of using this approach.
I have the same display with capacitive touch, so I'll include it in the example.
BTW, this is a very old example. I'm now using a different approach for non-DMA transfers using the slightly modified official esp-idf spi-master driver.
I hope I'll find some time to update the repository or create the new example of using this approach.
I have the same display with capacitive touch, so I'll include it in the example.
- Vader_Mester
- Posts: 300
- Joined: Tue Dec 05, 2017 8:28 pm
- Location: Hungary
- Contact:
Re: Non DMA version of the spi_master driver
Nice Loboris
__/|,
------'
__/|,
------'
Code: Select all
task_t coffeeTask()
{
while(atWork){
if(!xStreamBufferIsEmpty(mug)){
coffeeDrink(mug);
} else {
xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
}
}
vTaskDelete(NULL);
}
Re: Non DMA version of the spi_master driver
I was just thinking about non-dma spi. That's great since I am testing streaming data to lcd over tcp sockets.
I was trying to load images from DMA memory and annoying thing was the waits for DMA transfers.
The best way would be to use SPI PSRAM 4mb memory on Wrover - wonder how fast it is.
Not sure how to do with non-dma code yet.
I was trying to load images from DMA memory and annoying thing was the waits for DMA transfers.
The best way would be to use SPI PSRAM 4mb memory on Wrover - wonder how fast it is.
Not sure how to do with non-dma code yet.
Re: Non DMA version of the spi_master driver
@loboris:
I'm trying to get your non-dma driver to work together with a three-wire SPI interface without success. Would you mind sharing your " slightly modified official esp-idf spi-master driver" for me to try?
Rgds
/&&
I'm trying to get your non-dma driver to work together with a three-wire SPI interface without success. Would you mind sharing your " slightly modified official esp-idf spi-master driver" for me to try?
Rgds
/&&
Who is online
Users browsing this forum: No registered users and 32 guests