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/08/07 21:26] olivia [VIM1/2/3/3L] |
products:sbc:common:applications:gpio:led [2023/11/07 03:23] (current) nick |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| This page mainly describes the onboard LEDs and leads you to control the LEDs. | This page mainly describes the onboard LEDs and leads you to control the LEDs. | ||
| */ | */ | ||
| - | This page mainly | + | This page introduces the usage of Onboard LED indicators under Linux, and leads you to control the LEDs. |
| ===== Device LED configurations ===== | ===== Device LED configurations ===== | ||
| - | | | + | ^ |
| - | ^ VIM1/2 | / | + | ^ VIM1/ |
| - | ^ | + | ^ VIM3/ |
| - | | | + | | ::: |
| - | ^ VIM1S/VIM4 | / | + | ^ VIM1S/ |
| - | ^ | + | ^ Edge1 |
| - | | | + | | ::: |
| + | ^ Edge2 | / | ||
| + | | ::: | ||
| + | | ::: | ||
| Line 46: | Line 49: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| Line 77: | Line 80: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| Line 84: | Line 87: | ||
| <tabbox Edge1> | <tabbox Edge1> | ||
| - | We will use sys_led as an example: | + | We will use '' |
| **Turn off** | **Turn off** | ||
| Line 106: | Line 109: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| Line 112: | 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. | ||
| </ | </ | ||