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 cea73fe commit 98008c5Copy full SHA for 98008c5
README.md
@@ -60,6 +60,10 @@ void loop() {
60
#include <WM8978.h> /* https://github.com/CelliesProjects/wm8978-esp32 */
61
#include <Audio.h> /* https://github.com/schreibfaul1/ESP32-audioI2S */
62
63
+/* M5Stack Node WM8978 I2C pins */
64
+#define I2C_SDA 21
65
+#define I2C_SCL 22
66
+
67
/* M5Stack Node I2S pins */
68
#define I2S_BCK 5
69
#define I2S_WS 13
@@ -72,7 +76,7 @@ Audio audio;
72
76
73
77
void setup() {
74
78
75
- if (!Wire.begin(21, 22, 400000))
79
+ if (!Wire.begin(I2C_SDA, I2C_SCL, 400000))
80
log_e("i2c setup error!");
81
82
if (!dac.begin())
0 commit comments