From 52d6be8f5e72f7506e12aabe891c8fdbe6c6c4d8 Mon Sep 17 00:00:00 2001 From: necobit Date: Wed, 19 Mar 2025 15:18:12 +0900 Subject: [PATCH] =?UTF-8?q?M5.begin=E3=81=A8Wire=E3=81=AE=E9=83=A8?= =?UTF-8?q?=E5=88=86=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=81=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/Unit/PaHUB_TCA9548A/PaHUB_TCA9548A.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/Unit/PaHUB_TCA9548A/PaHUB_TCA9548A.ino b/examples/Unit/PaHUB_TCA9548A/PaHUB_TCA9548A.ino index 32e87e7f..64ddcfeb 100644 --- a/examples/Unit/PaHUB_TCA9548A/PaHUB_TCA9548A.ino +++ b/examples/Unit/PaHUB_TCA9548A/PaHUB_TCA9548A.ino @@ -28,8 +28,10 @@ ClosedCube::Wired::TCA9548A tca9548a; void setup() { - M5.begin(); + auto cfg = M5.config(); + M5.begin(cfg); M5.Power.begin(); + Wire.begin(); tca9548a.address(PaHub_I2C_ADDRESS); // Set the I2C address. 设置I2C地址 M5.Lcd.setTextFont(4); M5.Lcd.setCursor(70, 0, 4);