Skip to content

Commit b24ac3c

Browse files
authored
Update README.md
1 parent 1bd0d62 commit b24ac3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Here is an simple example which streams a file from the Flash Memory and writes
3030

3131
uint8_t channels = 2;
3232
uint16_t sample_rate = 22050;
33+
uint8_t bits_per_sample = 16;
3334

3435
MemoryStream music(StarWars30_raw, StarWars30_raw_len);
3536
I2SStream i2s; // Output to I2S
@@ -41,7 +42,7 @@ void setup(){
4142
auto config = i2s.defaultConfig(TX_MODE);
4243
config.sample_rate = sample_rate;
4344
config.channels = channels;
44-
config.bits_per_sample = 16;
45+
config.bits_per_sample = bits_per_sample;
4546
i2s.begin(config);
4647

4748
music.begin();

0 commit comments

Comments
 (0)