Skip to content

Commit

Permalink
Merge pull request #23 from misonyo/master
Browse files Browse the repository at this point in the history
根据最终版IOTboard修改引脚号等
  • Loading branch information
yqiu2018 committed Feb 12, 2019
2 parents e3afdce + 3f8d968 commit 8b40b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion i2c_aht10_sample.c
Expand Up @@ -18,7 +18,7 @@
#include <rtthread.h>
#include <rtdevice.h>

#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 /* 一般命令 */
Expand Down
4 changes: 2 additions & 2 deletions pin_beep_sample.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 8b40b59

Please sign in to comment.