We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3afdce + 3f8d968 commit 8b40b59Copy full SHA for 8b40b59
i2c_aht10_sample.c
@@ -18,7 +18,7 @@
18
#include <rtthread.h>
19
#include <rtdevice.h>
20
21
-#define AHT10_I2C_BUS_NAME "i2c1" /* 传感器连接的I2C总线设备名称 */
+#define AHT10_I2C_BUS_NAME "i2c2" /* 传感器连接的I2C总线设备名称 */
22
#define AHT10_ADDR 0x38 /* 从机地址 */
23
#define AHT10_CALIBRATION_CMD 0xE1 /* 校准命令 */
24
#define AHT10_NORMAL_CMD 0xA8 /* 一般命令 */
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
25
- #define KEY0_PIN_NUM 55 /* PD8 */
+ #define KEY0_PIN_NUM 57 /* PD10 */
26
27
#ifndef KEY1_PIN_NUM
28
#define KEY1_PIN_NUM 56 /* PD9 */
0 commit comments