File tree 6 files changed +44
-44
lines changed 6 files changed +44
-44
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- This example reads audio data from an Invensense's ICS43432 I2S microphone
3
- breakout board, and prints out the amplitude to the Serial console . The
4
- Serial Plotter built into the Arduino IDE can be used to plot the audio
5
- amplitude data (Tools -> Serial Plotter)
2
+ This example reads audio data from an InvenSense ICS-43432 I2S microphone
3
+ breakout board, and prints out the amplitude to the Serial Monitor . The
4
+ Serial Plotter built into the Arduino IDE (Tools -> Serial Plotter) can be
5
+ used to plot the audio amplitude data.
6
6
7
7
Circuit:
8
- * Arduino/Genuino Zero, MKRZero or MKR1000 board
9
- * ICS43432 :
8
+ * Arduino Zero, MKR Zero or MKR1000 board
9
+ * ICS-43432 :
10
10
* GND connected GND
11
- * 3.3V connected 3.3V (Zero) or VCC (MKR1000, MKRZero )
12
- * WS connected to pin 0 (Zero) or pin 3 (MKR1000, MKRZero )
13
- * CLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKRZero )
14
- * SD connected to pin 9 (Zero) or pin A6 (MKR1000, MKRZero )
11
+ * 3.3V connected 3.3V (Zero) or VCC (MKR1000, MKR Zero )
12
+ * WS connected to pin 0 (Zero) or pin 3 (MKR1000, MKR Zero )
13
+ * CLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKR Zero )
14
+ * SD connected to pin 9 (Zero) or pin A6 (MKR1000, MKR Zero )
15
15
16
16
created 23 November 2016
17
17
by Sandeep Mistry
Original file line number Diff line number Diff line change 1
1
/*
2
- This example reads audio data from an Invensense's ICS43432 I2S microphone
2
+ This example reads audio data from an InvenSense ICS-43432 I2S microphone
3
3
breakout board, and uses the input to detect clapping sounds. An LED is
4
- togggled when a clapp is detected.
4
+ toggled when a clap is detected.
5
5
6
6
Circuit:
7
- * Arduino/Genuino Zero, MKRZero or MKR1000 board
8
- * ICS43432 :
7
+ * Arduino Zero, MKR Zero or MKR1000 board
8
+ * ICS-43432 :
9
9
* GND connected GND
10
- * 3.3V connected 3.3V (Zero) or VCC (MKR1000, MKRZero )
11
- * WS connected to pin 0 (Zero) or pin 3 (MKR1000, MKRZero )
12
- * CLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKRZero )
13
- * SD connected to pin 9 (Zero) or pin A6 (MKR1000, MKRZero )
10
+ * 3.3V connected 3.3V (Zero) or VCC (MKR1000, MKR Zero )
11
+ * WS connected to pin 0 (Zero) or pin 3 (MKR1000, MKR Zero )
12
+ * CLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKR Zero )
13
+ * SD connected to pin 9 (Zero) or pin A6 (MKR1000, MKR Zero )
14
14
15
15
created 18 November 2016
16
16
by Sandeep Mistry
Original file line number Diff line number Diff line change 1
1
/*
2
- This example reads audio data from an Invensense's ICS43432 I2S microphone
3
- breakout board, and prints out the spectrum to the Serial console . The
4
- Serial Plotter built into the Arduino IDE can be used to plot the audio
5
- amplitude data (Tools -> Serial Plotter)
2
+ This example reads audio data from an InvenSense ICS-43432 I2S microphone
3
+ breakout board, and prints out the spectrum to the Serial Monitor . The
4
+ Serial Plotter built into the Arduino IDE (Tools -> Serial Plotter) can be
5
+ used to plot the audio amplitude data.
6
6
7
7
Circuit:
8
- * Arduino/Genuino Zero, MKRZero or MKR1000 board
9
- * ICS43432 :
8
+ * Arduino Zero, MKR Zero or MKR1000 board
9
+ * ICS-43432 :
10
10
* GND connected GND
11
- * 3.3V connected 3.3V (Zero) or VCC (MKR1000, MKRZero )
12
- * WS connected to pin 0 (Zero) or pin 3 (MKR1000, MKRZero )
13
- * CLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKRZero )
14
- * SD connected to pin 9 (Zero) or pin A6 (MKR1000, MKRZero )
11
+ * 3.3V connected 3.3V (Zero) or VCC (MKR1000, MKR Zero )
12
+ * WS connected to pin 0 (Zero) or pin 3 (MKR1000, MKR Zero )
13
+ * CLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKR Zero )
14
+ * SD connected to pin 9 (Zero) or pin A6 (MKR1000, MKR Zero )
15
15
16
16
created 21 November 2016
17
17
by Sandeep Mistry
Original file line number Diff line number Diff line change 1
1
/*
2
2
This reads a wave file from an SD card and plays it using the I2S interface to
3
- a MAX08357 I2S Amp Breakout board.
3
+ a MAX98357 I2S Amp Breakout board.
4
4
5
5
Circuit:
6
- * Arduino/Genuino Zero, MKRZero or MKR1000 board
6
+ * Arduino Zero, MKR Zero or MKR1000 board
7
7
* SD breakout or shield connected
8
- * MAX08357 :
8
+ * MAX98357 :
9
9
* GND connected GND
10
10
* VIN connected 5V
11
- * LRC connected to pin 0 (Zero) or pin 3 (MKR1000, MKRZero )
12
- * BCLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKRZero )
13
- * DIN connected to pin 9 (Zero) or pin A6 (MKR1000, MKRZero )
11
+ * LRC connected to pin 0 (Zero) or pin 3 (MKR1000, MKR Zero )
12
+ * BCLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKR Zero )
13
+ * DIN connected to pin 9 (Zero) or pin A6 (MKR1000, MKR Zero )
14
14
15
15
created 15 November 2016
16
16
by Sandeep Mistry
Original file line number Diff line number Diff line change 1
1
/*
2
- This example reads audio data from an Invensense's ICS43432 I2S microphone
2
+ This example reads audio data from an InvenSense ICS-43432 I2S microphone
3
3
breakout board, and uses the input to detect whistling sounds at a particular
4
- frequency. When a whistle is detected, it's level is used to control the
5
- brightness of an LED
4
+ frequency. When a whistle is detected, its level is used to control the
5
+ brightness of an LED.
6
6
7
7
Circuit:
8
- * Arduino/Genuino Zero, MKRZero or MKR1000 board
9
- * ICS43432 :
8
+ * Arduino Zero, MKR Zero or MKR1000 board
9
+ * ICS-43432 :
10
10
* GND connected GND
11
- * 3.3V connected 3.3V (Zero) or VCC (MKR1000, MKRZero )
12
- * WS connected to pin 0 (Zero) or pin 3 (MKR1000, MKRZero )
13
- * CLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKRZero )
14
- * SD connected to pin 9 (Zero) or pin A6 (MKR1000, MKRZero )
11
+ * 3.3V connected 3.3V (Zero) or VCC (MKR1000, MKR Zero )
12
+ * WS connected to pin 0 (Zero) or pin 3 (MKR1000, MKR Zero )
13
+ * CLK connected to pin 1 (Zero) or pin 2 (MKR1000, MKR Zero )
14
+ * SD connected to pin 9 (Zero) or pin A6 (MKR1000, MKR Zero )
15
15
16
16
created 30 November 2016
17
17
by Sandeep Mistry
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ int SDWaveFile::cue(long time)
150
150
offset = 0 ;
151
151
}
152
152
153
- // make sure it's multiple of 512
153
+ // make sure it's a multiple of 512
154
154
offset = (offset / 512 ) * 512 ;
155
155
156
156
if ((uint32_t )offset > _file.size ()) {
You can’t perform that action at this time.
0 commit comments