We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a9d403 commit b4f5688Copy full SHA for b4f5688
libraries/ESP_I2S/examples/Simple_tone/Simple_tone.ino
@@ -31,9 +31,9 @@
31
#include <ESP_I2S.h>
32
33
// In fact, the GPIO pins are not fixed, most other pins can be used for the I2S function.
34
-#define LRC 25
35
-#define BCLK 5
36
-#define DIN 26
+#define I2S_LRC 25
+#define I2S_BCLK 5
+#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
@@ -54,7 +54,7 @@ void setup() {
54
Serial.begin(115200);
55
Serial.println("I2S simple tone");
56
57
- i2s.setPins(BCLK, LRC, DIN);
+ i2s.setPins(I2S_BCLK, I2S_LRC, I2S_DIN);
58
59
// start I2S at the sample rate with 16-bits per sample
60
if (!i2s.begin(mode, sampleRate, bps, slot)) {
0 commit comments