OVMS3-idf/examples/peripherals/spi_slave
Ivan Grokhotkov c3123b00ae examples/spi_slave: check for truncation in snprintf call
Also fix character array initializer
2018-08-29 14:40:28 +08:00
..
receiver SPI: Small fixes according to MR comments 2017-04-27 11:49:04 +08:00
sender examples/spi_slave: check for truncation in snprintf call 2018-08-29 14:40:28 +08:00
README.md Added / corrected README files for the SPI master / slave examples under peripherals 2018-03-12 05:56:35 +01:00

SPI slave example

These two projects illustrate the SPI Slave driver. They're supposed to be flashed into two separate ESP32s connected to eachother using the SPI pins defined in app_main.c. Once connected and flashed, they will use the spi master and spi slave driver to communicate with eachother. The example also includes a handshaking line to allow the master to only poll the slave when it is actually ready to parse a transaction.

Please run wires between the following GPIOs between the slave and master to make the example function:

Signal Slave Master
Handshake GPIO2 GPIO2
MOSI GPIO12 GPIO12
MISO GPIO13 GPIO13
SCLK GPIO15 GPIO15
CS GPIO14 GPIO14

Be aware that the example by default uses lines normally reserved for JTAG. If this is an issue, either because of hardwired JTAG hardware or because of the need to do JTAG debugging, feel free to change the GPIO settings by editing defines in the top of main.c in the master/slave source code.