Skip to content

Commit bc743d0

Browse files
Add intro usage text to example
Mostly for my edification, list the IO pins and where to find them on the D1 mini and other boards, and how to use the AIY Voice Hat.
1 parent 1285d9d commit bc743d0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

libraries/esp8266/examples/I2SInput/I2SInput.ino

+23
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22
I2S stereo microphone (input) example
33
Run using the Arduion Serial Plotter to see waveform.
44
Released to the Public Domain by Earle F. Philhower, III
5+
6+
For the Google AIY Voice Hat Microphone daughterboard, part
7+
of the Raspberry Pi AIY cardboard box, the I2S stereo pinout
8+
looking at the board top with the RPI logo on the left hand
9+
side:
10+
+-- ------------------------------------ --+
11+
left RPI | (1) GND (2) DIN (3) BCLK (4) LRCLK (5) 3.3V | AIY right
12+
+---------------------------------------------+
13+
14+
The I2S pins are on different pins depending on your board.
15+
The *internal GPIO number* which is NOT NECESSARIALY the
16+
same as the pin numbers, are as follows:
17+
I2SI_DATA = GPIO12
18+
IS2I_BCK = GPIO13
19+
I2SI_WS/LRCLK = GPIO14
20+
21+
On the D1 mini the I2SI pins map to the following D pins:
22+
I2SI_DATA = GPIO12 = D6
23+
IS2I_BCK = GPIO13 = D7
24+
I2SI_WS/LRCLK = GPIO14 = D5
25+
26+
Expect different D pins on different ESP8266 boards, and of
27+
course be sure to wire up VCC(3.3V) and GND.
528
*/
629

730
#include <ESP8266WiFi.h>

0 commit comments

Comments
 (0)