From cb1be8207387b37debfa50c04c184606e173033f Mon Sep 17 00:00:00 2001 From: 0x1abin <270995079@qq.com> Date: Thu, 24 May 2018 11:21:59 +0800 Subject: [PATCH] rm i2c pin device startup init --- src/M5Stack.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/M5Stack.cpp b/src/M5Stack.cpp index 7934ec9..8889cb6 100644 --- a/src/M5Stack.cpp +++ b/src/M5Stack.cpp @@ -10,9 +10,9 @@ void M5Stack::begin(bool LCDEnable, bool SDEnable) { Serial.flush(); Serial.print("M5Stack initializing..."); - // I2C - pinMode(SCL, OUTPUT); - digitalWrite(SDA, 1); + // I2C Startup BUG? + // pinMode(SCL, OUTPUT); + // digitalWrite(SCL, 1); // TONE Speaker.begin(); @@ -32,9 +32,9 @@ void M5Stack::begin(bool LCDEnable, bool SDEnable) { setWakeupButton(BUTTON_A_PIN); // MPU9250 -#ifdef MPU9250_INSDE + #ifdef MPU9250_INSDE Wire.begin(); -#endif + #endif Serial.println("OK"); }