We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92af4e6 commit dac6ef6Copy full SHA for dac6ef6
libraries/ESP_I2S/examples/Simple_tone/Simple_tone.ino
@@ -31,9 +31,9 @@
31
#include <ESP_I2S.h>
32
33
// The GPIO pins are not fixed, most other pins could be used for the I2S function.
34
-#define I2S_LRC 25
+#define I2S_LRC 25
35
#define I2S_BCLK 5
36
-#define I2S_DIN 26
+#define I2S_DIN 26
37
38
const int frequency = 440; // frequency of square wave in Hz
39
const int amplitude = 500; // amplitude of square wave
@@ -59,8 +59,7 @@ void setup() {
59
// start I2S at the sample rate with 16-bits per sample
60
if (!i2s.begin(mode, sampleRate, bps, slot)) {
61
Serial.println("Failed to initialize I2S!");
62
- while (1)
63
- ; // do nothing
+ while (1); // do nothing
64
}
65
66
0 commit comments