diff --git a/rt-thread-version/rt-thread-standard/programming-manual/device/pin/pin.md b/rt-thread-version/rt-thread-standard/programming-manual/device/pin/pin.md index fb22d4cdf81567437a055b3ff48c90d56440f93c..43854781185e015531edc9a6b48894ece58e0ef6 100644 --- a/rt-thread-version/rt-thread-standard/programming-manual/device/pin/pin.md +++ b/rt-thread-version/rt-thread-standard/programming-manual/device/pin/pin.md @@ -209,7 +209,7 @@ static void pin_beep_sample(void) { /* 按键0引脚为输入模式 */ rt_pin_mode(KEY0_PIN_NUM, PIN_MODE_INPUT_PULLUP); - /* 绑定中断,上升沿模式,回调函数名为beep_on */ + /* 绑定中断,下降沿模式,回调函数名为beep_on */ rt_pin_attach_irq(KEY0_PIN_NUM, PIN_IRQ_MODE_FALLING, beep_on, RT_NULL); } ``` @@ -245,7 +245,7 @@ static void pin_beep_sample(void) { /* 按键0引脚为输入模式 */ rt_pin_mode(KEY0_PIN_NUM, PIN_MODE_INPUT_PULLUP); - /* 绑定中断,上升沿模式,回调函数名为beep_on */ + /* 绑定中断,下降沿模式,回调函数名为beep_on */ rt_pin_attach_irq(KEY0_PIN_NUM, PIN_IRQ_MODE_FALLING, beep_on, RT_NULL); /* 使能中断 */ rt_pin_irq_enable(KEY0_PIN_NUM, PIN_IRQ_ENABLE); @@ -282,7 +282,7 @@ static void pin_beep_sample(void) { /* 按键0引脚为输入模式 */ rt_pin_mode(KEY0_PIN_NUM, PIN_MODE_INPUT_PULLUP); - /* 绑定中断,上升沿模式,回调函数名为beep_on */ + /* 绑定中断,下降沿模式,回调函数名为beep_on */ rt_pin_attach_irq(KEY0_PIN_NUM, PIN_IRQ_MODE_FALLING, beep_on, RT_NULL); /* 使能中断 */ rt_pin_irq_enable(KEY0_PIN_NUM, PIN_IRQ_ENABLE);