mirror of
https://github.com/m5stack/M5Stack.git
synced 2026-05-20 10:06:46 -07:00
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
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user