ESP32 Half-Duplex SPI Slave
Posted: Tue Apr 04, 2017 9:51 pm
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.