Page 1 of 1

ESP32 Half-Duplex SPI Slave

Posted: Tue Apr 04, 2017 9:51 pm
by BrettG
I am currently using a camera that is controlled with I2C and sends its data through SPI. As the title suggests, the camera is set up to be a SPI master, and only communicates one way, i.e. it only has a spi clock and output data pins. Does anyone have some sample code to set up the ESP32 in a slave configuration? I had made some quick and dirty code to read the pin levels, but the signals were at too high frequency and timing became an issue. If I could set a buffer to read a data pin whenever it sees the rising edge of a clock, that would be sufficient.

Re: ESP32 Half-Duplex SPI Slave

Posted: Wed Apr 05, 2017 2:00 am
by ESP_Sprite
Fyi: We've got a (full-duplex) slave driver on the way. Will probably make its debut in master in one or two weeks, I estimate.

Re: ESP32 Half-Duplex SPI Slave

Posted: Wed Apr 05, 2017 11:02 am
by moloned
I'm also trying to write a driver for a similar camera with I2C control and a data interface that can we used with a SPI input on the ESP32

I have built my own board using the ESP32S to interface to a 6050 IMU and the camera

Which camera are you using?