Skip to content

Commit 691b2ad

Browse files
committed
Added / corrected README files for the SPI master / slave examples under peripherals
1 parent 53e01bf commit 691b2ad

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## SPI master example
2+
3+
This code displays a simple graphics with varying pixel colors on the 320x240 LCD on an ESP-WROVER-KIT board.
4+
5+
If you like to adopt this example to another type of display or pinout, check [manin/spi_master_example_main.c] for comments that explain some of implementation details.
Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
## SPI slave example
22

3-
These two projects illustrate the SPI Slave driver. They're supposed to be flashed into two separate ESP32s connected to
4-
eachother using the SPI pins defined in app_main.c. Once connected and flashed, they will use the spi master and spi slave
5-
driver to communicate with eachother. The example also includes a handshaking line to allow the master to only poll the
6-
slave when it is actually ready to parse a transaction.
3+
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.
74

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

10-
========= ====== =======
11-
Signal Slave Master
12-
========= ====== =======
13-
Handshake GPIO2 GPIO2
14-
MOSI GPIO12 GPIO12
15-
MISO GPIO13 GPIO13
16-
SCLK GPIO15 GPIO15
17-
CS GPIO14 GPIO14
18-
========= ====== =======
7+
| Signal | Slave | Master |
8+
|-----------|--------|--------|
9+
| Handshake | GPIO2 | GPIO2 |
10+
| MOSI | GPIO12 | GPIO12 |
11+
| MISO | GPIO13 | GPIO13 |
12+
| SCLK | GPIO15 | GPIO15 |
13+
| CS | GPIO14 | GPIO14 |
1914

20-
Be aware that the example by default uses lines normally reserved for JTAG. If this is an issue, either because of hardwired
21-
JTAG hardware or because of the need to do JTAG debugging, feel free to change the GPIO settings by editing defines in the top
22-
of main.c in the master/slave source code.
15+
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.

0 commit comments

Comments
 (0)