Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann authored Nov 2, 2024
1 parent 1bd0d62 commit b24ac3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Here is an simple example which streams a file from the Flash Memory and writes

uint8_t channels = 2;
uint16_t sample_rate = 22050;
uint8_t bits_per_sample = 16;

MemoryStream music(StarWars30_raw, StarWars30_raw_len);
I2SStream i2s; // Output to I2S
Expand All @@ -41,7 +42,7 @@ void setup(){
auto config = i2s.defaultConfig(TX_MODE);
config.sample_rate = sample_rate;
config.channels = channels;
config.bits_per_sample = 16;
config.bits_per_sample = bits_per_sample;
i2s.begin(config);

music.begin();
Expand Down

0 comments on commit b24ac3c

Please sign in to comment.