mirror of
https://github.com/m5stack/M5Stack.git
synced 2026-05-20 10:06:46 -07:00
rm i2c pin device startup init
This commit is contained in:
+5
-5
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user