From 9307553151f5e8ed26b44d8c6b084dc78e02fc8e Mon Sep 17 00:00:00 2001 From: todateman <47563398+todateman@users.noreply.github.com> Date: Thu, 4 Aug 2022 21:42:30 +0900 Subject: [PATCH] Update ADC_M5StickCPlus.ino Added "Wire.begin (0, 26);" to enable I2C. --- examples/ADC_M5StickCPlus/ADC_M5StickCPlus.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ADC_M5StickCPlus/ADC_M5StickCPlus.ino b/examples/ADC_M5StickCPlus/ADC_M5StickCPlus.ino index 5a3faea..1b38dc1 100644 --- a/examples/ADC_M5StickCPlus/ADC_M5StickCPlus.ino +++ b/examples/ADC_M5StickCPlus/ADC_M5StickCPlus.ino @@ -22,6 +22,7 @@ ADS1100 ads; void setup(void) { M5.begin(); // Init M5StickCPlus. 初始化M5StickCPlus M5.Lcd.setRotation(3); // Rotating display. 旋转显示屏 + Wire.begin(0, 26); // Enable I2C. 启用 I2C // The address can be changed making the option of connecting multiple // devices 地址可以改变,以连接多个设备 @@ -71,4 +72,4 @@ void loop(void) { M5.Lcd.drawString("No Found ADC sensor.", 0, 20); } delay(1000); -} \ No newline at end of file +}