Browse Source

Merge pull request #23 from misonyo/master

根据最终版IOTboard修改引脚号等
yqiu 7 years ago
parent
commit
8b40b596b8
2 changed files with 3 additions and 3 deletions
  1. 1 1
      i2c_aht10_sample.c
  2. 2 2
      pin_beep_sample.c

+ 1 - 1
i2c_aht10_sample.c

@@ -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    /* 一般命令 */

+ 2 - 2
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 */