From 3f8d96852a8f2204d3a155e31f48c0c0aaaef754 Mon Sep 17 00:00:00 2001 From: misonyo Date: Tue, 12 Feb 2019 16:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=9C=80=E7=BB=88=E7=89=88IO?= =?UTF-8?q?Tboard=E4=BF=AE=E6=94=B9=E5=BC=95=E8=84=9A=E5=8F=B7=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i2c_aht10_sample.c | 2 +- pin_beep_sample.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/i2c_aht10_sample.c b/i2c_aht10_sample.c index 51fe81e..376845f 100644 --- a/i2c_aht10_sample.c +++ b/i2c_aht10_sample.c @@ -18,7 +18,7 @@ #include #include -#define AHT10_I2C_BUS_NAME "i2c1" /* 传感器连接的I2C总线设备名称 */ +#define AHT10_I2C_BUS_NAME "i2c2" /* 传感器连接的I2C总线设备名称 */ #define AHT10_ADDR 0x38 /* 从机地址 */ #define AHT10_CALIBRATION_CMD 0xE1 /* 校准命令 */ #define AHT10_NORMAL_CMD 0xA8 /* 一般命令 */ diff --git a/pin_beep_sample.c b/pin_beep_sample.c index ee3ca6d..833e339 100644 --- a/pin_beep_sample.c +++ b/pin_beep_sample.c @@ -19,10 +19,10 @@ /* 引脚编号,通过查看驱动文件drv_gpio.c确定 */ #ifndef BEEP_PIN_NUM - #define BEEP_PIN_NUM 35 /* PB0 */ + #define BEEP_PIN_NUM 37 /* PB2 */ #endif #ifndef KEY0_PIN_NUM - #define KEY0_PIN_NUM 55 /* PD8 */ + #define KEY0_PIN_NUM 57 /* PD10 */ #endif #ifndef KEY1_PIN_NUM #define KEY1_PIN_NUM 56 /* PD9 */