From f148a0ef7bde57562238656688a00f0e63591572 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Mon, 19 Sep 2022 09:40:06 +0000 Subject: [PATCH] update en/device-dev/guide/device-wlan-led-control.md. Signed-off-by: king_he <6384784@qq.com> Signed-off-by: king_he <6384784@qq.com> --- en/device-dev/guide/device-wlan-led-control.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/en/device-dev/guide/device-wlan-led-control.md b/en/device-dev/guide/device-wlan-led-control.md index f6ecb319c1..8b306b62da 100644 --- a/en/device-dev/guide/device-wlan-led-control.md +++ b/en/device-dev/guide/device-wlan-led-control.md @@ -10,16 +10,17 @@ Based on the Hi3861 platform, the OpenHarmony WLAN module provides abundant peri LED control examples are stored in the file **applications/sample/wifi-iot/app/iothardware/led\_example.c**. -2. Understand the cable connections by referring to the schematic diagram. You can learn that LED of hispark pegasus is connected to pin 9 of the chip. +2. Understand the cable connections by referring to the schematic diagram of the development board. You can learn that LED of hispark pegasus is connected to pin 9 of the chip. ``` #define LED_TEST_GPIO 9 ``` - >![](../public_sys-resources/icon-note.gif) **NOTE:** + >![](../public_sys-resources/icon-note.gif) **NOTE:** + > >For details about the schematic diagram of the development board, contact the Hi3861 customer service personnel. -3. Initialize the GPIO pin, specify the pin usage, and create a task to turn on or off the LED periodically so that the LED blinks. +3. Initialize the GPIO pin, specify the pin usage, and create a task that turns on or off the LED periodically to implement LED blinking. ``` static void LedExampleEntry(void) @@ -82,7 +83,7 @@ Based on the Hi3861 platform, the OpenHarmony WLAN module provides abundant peri SYS_RUN(LedExampleEntry); ``` -6. Change the **applications/sample/wifi-iot/app/BUILD.gn** file to enable **led\_example.c** to participate in compilation. +6. Add **led\_example.c** to the **applications/sample/wifi-iot/app/BUILD.gn** file for building. ``` import("//build/lite/config/component/lite_component.gni") -- GitLab