Skip to content

Commit f230c61

Browse files
committed
Set GPIO15 to OD mode in m5stack.cpp
if use M5GO button, need set gpio15 OD or PP mode to avoid affecting the wifi signal
1 parent 5dc7820 commit f230c61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/M5Stack.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ void M5Stack::begin(bool LCDEnable, bool SDEnable, bool SerialEnable, bool I2CEn
4646
if (SerialEnable == true) {
4747
Serial.println("OK");
4848
}
49+
50+
// if use M5GO button, need set gpio15 OD or PP mode to avoid affecting the wifi signal
51+
pinMode(15, OUTPUT_OPEN_DRAIN);
4952
}
5053

5154
void M5Stack::update() {

0 commit comments

Comments
 (0)