This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:applications:gpio:led [2022/07/12 23:54] nick [Table] |
products:sbc:common:applications:gpio:led [2023/11/07 03:23] (current) nick |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| /* | /* | ||
| - | This document | + | This page mainly describes the onboard LEDs and leads you to control the LEDs. |
| */ | */ | ||
| - | Onboard LED indicators | + | This page introduces the usage of Onboard LED indicators under Linux, and leads you to control the LEDs. |
| - | ===== LED Information | + | ===== Device |
| - | | ^ Device Node ^ | + | ^ Device |
| - | ^ VIM1/ | + | ^ VIM1/ |
| - | ^ VIM3/ | + | ^ VIM3/ |
| - | ^ ::: | + | | |
| - | ^ VIM4 | + | ^ |
| - | ^ Edge1 | / | + | ^ Edge1 | / |
| - | | ::: | + | | ::: |
| + | ^ Edge2 | / | ||
| + | | ::: | ||
| + | | ::: | ||
| - | |||
| - | |||
| - | <tabbox VIM1/2> | ||
| - | |||
| - | VIM1/VIM2 has only one node. | ||
| - | |||
| - | ```shell | ||
| - | $ ls / | ||
| - | sys_led | ||
| - | ``` | ||
| - | |||
| - | <tabbox VIM3/3L> | ||
| - | |||
| - | VIM3/VIM3L has two nodes. | ||
| - | |||
| - | ```shell | ||
| - | $ ls / | ||
| - | red_led | ||
| - | ``` | ||
| - | |||
| - | <tabbox VIM4> | ||
| - | |||
| - | VIM4 has only one node which is a PWM LED. | ||
| - | |||
| - | ```shell | ||
| - | $ ls / | ||
| - | pwmled | ||
| - | ``` | ||
| - | |||
| - | <tabbox Edge1> | ||
| - | |||
| - | Edge1 has two nodes. | ||
| - | |||
| - | ```shell | ||
| - | $ ls / | ||
| - | read_led | ||
| - | ``` | ||
| - | <tabbox Edge2> | ||
| - | |||
| - | </ | ||
| ===== Setup LED ===== | ===== Setup LED ===== | ||
| Line 86: | Line 49: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| - | You can also try other parameters. | + | You can also experiment with other parameters. |
| - | <tabbox VIM4> | + | < |
| We will take '' | We will take '' | ||
| Line 117: | Line 80: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| Line 124: | Line 87: | ||
| <tabbox Edge1> | <tabbox Edge1> | ||
| - | We will use sys_led as an example: | + | We will use '' |
| **Turn off** | **Turn off** | ||
| Line 146: | Line 109: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| Line 152: | Line 115: | ||
| <tabbox Edge2> | <tabbox Edge2> | ||
| + | We will use '' | ||
| + | |||
| + | **Turn off** | ||
| + | |||
| + | Set the LED node parameter to '' | ||
| + | |||
| + | ```shell | ||
| + | $ echo none | sudo tee / | ||
| + | ``` | ||
| + | |||
| + | **Turn on** | ||
| + | |||
| + | Set the LED node parameter to '' | ||
| + | |||
| + | ```shell | ||
| + | $ echo default-on | sudo tee / | ||
| + | ``` | ||
| + | **Set LED heartbeat** | ||
| + | |||
| + | Set the LED node parameter to '' | ||
| + | |||
| + | ```shell | ||
| + | $ echo heartbeat | sudo tee / | ||
| + | ``` | ||
| + | The others are similar. | ||
| + | |||
| + | You can also experiment with other parameters. | ||
| </ | </ | ||