From f230c61efbca50bcd01392aefa9e53fc5fd30ce2 Mon Sep 17 00:00:00 2001 From: sorznal Date: Tue, 14 Apr 2020 11:03:48 +0800 Subject: [PATCH] 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 --- src/M5Stack.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/M5Stack.cpp b/src/M5Stack.cpp index 035f476..a981c26 100644 --- a/src/M5Stack.cpp +++ b/src/M5Stack.cpp @@ -46,6 +46,9 @@ void M5Stack::begin(bool LCDEnable, bool SDEnable, bool SerialEnable, bool I2CEn if (SerialEnable == true) { Serial.println("OK"); } + + // if use M5GO button, need set gpio15 OD or PP mode to avoid affecting the wifi signal + pinMode(15, OUTPUT_OPEN_DRAIN); } void M5Stack::update() {