Skip to content

Commit c638d28

Browse files
committed
streams-i2s-i2s
1 parent 5783e20 commit c638d28

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/examples-stream/streams-i2s-i2s/streams-i2s-i2s.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @copyright GPLv3
66
*/
77

8-
uint16_t sample_rate=44100;
8+
uint16_t sample_rate=96000;
99
uint16_t channels = 2;
1010
I2SStream in;
1111
I2SStream out;
@@ -25,12 +25,13 @@ void setup(void) {
2525
config_in.sample_rate = sample_rate;
2626
config_in.bits_per_sample = 16;
2727
config_in.i2s_format = I2S_STD_FORMAT;
28-
config_in.is_master = true;
2928
config_in.port_no = 0;
3029
config_in.pin_ws = 12;
3130
config_in.pin_bck = 13;
3231
config_in.pin_data = 14;
33-
32+
config_in.is_master = false;
33+
//config.pin_mck = 2; // wenn ESP master
34+
//config.fixed_mclk = ? //wenn ESP master
3435
in.begin(config_in);
3536

3637
// start I2S out

0 commit comments

Comments
 (0)