Skip to content

Commit 3f8d968

Browse files
committed
根据最终版IOTboard修改引脚号等
1 parent 8f696ca commit 3f8d968

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

i2c_aht10_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <rtthread.h>
1919
#include <rtdevice.h>
2020

21-
#define AHT10_I2C_BUS_NAME "i2c1" /* 传感器连接的I2C总线设备名称 */
21+
#define AHT10_I2C_BUS_NAME "i2c2" /* 传感器连接的I2C总线设备名称 */
2222
#define AHT10_ADDR 0x38 /* 从机地址 */
2323
#define AHT10_CALIBRATION_CMD 0xE1 /* 校准命令 */
2424
#define AHT10_NORMAL_CMD 0xA8 /* 一般命令 */

pin_beep_sample.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
/* 引脚编号,通过查看驱动文件drv_gpio.c确定 */
2121
#ifndef BEEP_PIN_NUM
22-
#define BEEP_PIN_NUM 35 /* PB0 */
22+
#define BEEP_PIN_NUM 37 /* PB2 */
2323
#endif
2424
#ifndef KEY0_PIN_NUM
25-
#define KEY0_PIN_NUM 55 /* PD8 */
25+
#define KEY0_PIN_NUM 57 /* PD10 */
2626
#endif
2727
#ifndef KEY1_PIN_NUM
2828
#define KEY1_PIN_NUM 56 /* PD9 */

0 commit comments

Comments
 (0)