ESP32S: More than two SPI channels possible?
Posted: Sat Nov 16, 2019 11:00 am
In a test, I was successfully able to use SPI with pins:
However, I cannot run the camera in parallel with my own SPI communication. The problem are not the pins. Pins 2, 12, 14, and 15 are not used by the camera. The problem is the following line in my code:
If I switch to HSPI_HOST, then again the camera won't start. The camera uses both SPI channels, HSPI and VSPI.
Is there a third channel that I can use?
Otherwise, I'm out of luck, and I would have to switch to the ESP-EYE, which - according to my tests - allows using SPI in parallel with the camera, no problem. Only it is more expensive and more stupid to solder to a board. I need a few dozen devices.
Code: Select all
#define GPIO_MOSI 2
#define GPIO_MISO 12
#define GPIO_SCLK 14
#define GPIO_CS 15
Code: Select all
spi_slave_initialize(HSPI_HOST, &buscfg, &slvcfg, 1);
Is there a third channel that I can use?
Otherwise, I'm out of luck, and I would have to switch to the ESP-EYE, which - according to my tests - allows using SPI in parallel with the camera, no problem. Only it is more expensive and more stupid to solder to a board. I need a few dozen devices.