Skip to content

Commit 98008c5

Browse files
Update README.md
1 parent cea73fe commit 98008c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ void loop() {
6060
#include <WM8978.h> /* https://github.com/CelliesProjects/wm8978-esp32 */
6161
#include <Audio.h> /* https://github.com/schreibfaul1/ESP32-audioI2S */
6262

63+
/* M5Stack Node WM8978 I2C pins */
64+
#define I2C_SDA 21
65+
#define I2C_SCL 22
66+
6367
/* M5Stack Node I2S pins */
6468
#define I2S_BCK 5
6569
#define I2S_WS 13
@@ -72,7 +76,7 @@ Audio audio;
7276

7377
void setup() {
7478

75-
if (!Wire.begin(21, 22, 400000))
79+
if (!Wire.begin(I2C_SDA, I2C_SCL, 400000))
7680
log_e("i2c setup error!");
7781

7882
if (!dac.begin())

0 commit comments

Comments
 (0)