From e72273317832e79dec218450b4661103e65dfbac Mon Sep 17 00:00:00 2001 From: slhuan <953172510@qq.com> Date: Wed, 8 Mar 2023 10:26:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9doc=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E4=B8=8Bpwm=E4=BE=8B=E7=A8=8B=E4=B8=AD=E5=B0=86led?= =?UTF-8?q?=E7=9A=84io=E8=AE=BE=E7=BD=AE=E4=B8=BA=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=90=8E=E5=86=8D=E4=BD=BF=E7=94=A8PWM?= =?UTF-8?q?=E6=8E=A7=E5=88=B6LED=EF=BC=8C=E7=BB=8F=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=BF=99=E6=A0=B7=E6=98=AF=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E8=BE=93=E5=87=BAPWM=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- documentation/device/pwm/pwm.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/documentation/device/pwm/pwm.md b/documentation/device/pwm/pwm.md index b1b88180ba..e87c1328f9 100644 --- a/documentation/device/pwm/pwm.md +++ b/documentation/device/pwm/pwm.md @@ -218,11 +218,6 @@ static int pwm_led_sample(int argc, char *argv[]) dir = 1; /* Increase or decrease direction of PWM pulse width value */ pulse = 0; /* PWM pulse width value, the unit is nanoseconds*/ - /* Set LED pin mode to output */ - rt_pin_mode(LED_PIN_NUM, PIN_MODE_OUTPUT); - /* Set high LED pin mode */ - rt_pin_write(LED_PIN_NUM, PIN_HIGH); - /* Search the Device */ pwm_dev = (struct rt_device_pwm *)rt_device_find(PWM_DEV_NAME); if (pwm_dev == RT_NULL)