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:52] nick [Table] |
products:sbc:common:applications:gpio:led [2026/05/11 02: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 |
| - | ^ VIM1/ | + | ^ VIM1/ |
| - | ^ | + | ^ |
| - | | ::: | | + | | ::: |
| - | | | | | + | ^ |
| - | ^ VIM4 | / | + | ^ Edge1 |
| - | ^ Edge1 | + | | ::: |
| - | ^ ::: | + | ^ Edge2/ |
| + | | ::: | ||
| + | | ::: | ||
| + | ===== Setup LED ===== | ||
| - | <tabbox VIM1/2> | + | <tabbox VIM1/2/3/3L> |
| - | VIM1/VIM2 has only one node. | + | We will take '' |
| - | ```shell | + | **Turn off** |
| - | $ ls / | + | |
| - | sys_led | + | |
| - | ``` | + | |
| - | <tabbox VIM3/ | + | Set the LED node parameter to '' |
| - | + | ||
| - | VIM3/VIM3L has two nodes. | + | |
| ```shell | ```shell | ||
| - | $ ls / | + | $ echo none | sudo tee / |
| - | red_led | + | |
| ``` | ``` | ||
| - | <tabbox VIM4> | + | **Turn on** |
| - | VIM4 has only one node which is a PWM LED. | + | Set the LED node parameter to '' |
| ```shell | ```shell | ||
| - | $ ls / | + | $ echo default-on | sudo tee / |
| - | pwmled | + | |
| ``` | ``` | ||
| - | <tabbox Edge1> | + | **Set LED heartbeat** |
| - | Edge1 has two nodes. | + | Set the LED node parameter to '' |
| ```shell | ```shell | ||
| - | $ ls / | + | $ echo heartbeat | sudo tee / |
| - | read_led | + | |
| ``` | ``` | ||
| - | <tabbox Edge2> | ||
| - | </ | + | You can also experiment with other parameters. |
| - | ===== Setup LED ===== | + | <tabbox VIM1S/ |
| - | <tabbox VIM1/ | + | We will take '' |
| - | + | ||
| - | We will take '' | + | |
| **Turn off** | **Turn off** | ||
| Line 71: | Line 63: | ||
| ```shell | ```shell | ||
| - | $ echo none | sudo tee / | + | $ echo none | sudo tee / |
| ``` | ``` | ||
| **Turn on** | **Turn on** | ||
| - | Set the LED node parameter to '' | + | Set the LED node parameter to '' |
| ```shell | ```shell | ||
| - | $ echo default-on | sudo tee / | + | $ echo default-on | sudo tee / |
| ``` | ``` | ||
| + | |||
| **Set LED heartbeat** | **Set LED heartbeat** | ||
| Line 87: | Line 80: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| - | You can also try other parameters. | + | You can also experiment with other parameters. |
| - | < | + | < |
| - | We will take '' | + | We will use '' |
| **Turn off** | **Turn off** | ||
| Line 101: | Line 94: | ||
| ```shell | ```shell | ||
| - | $ echo none | sudo tee / | + | $ echo none | sudo tee / |
| ``` | ``` | ||
| **Turn on** | **Turn on** | ||
| - | Set the LED node parameter to '' | + | Set the LED node parameter to '' |
| ```shell | ```shell | ||
| - | $ echo default-on | sudo tee / | + | $ echo default-on | sudo tee / |
| ``` | ``` | ||
| - | |||
| - | |||
| **Set LED heartbeat** | **Set LED heartbeat** | ||
| Line 118: | Line 109: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| You can also experiment with other parameters. | You can also experiment with other parameters. | ||
| - | < | + | < |
| - | + | We will use '' | |
| - | We will use sys_led | + | |
| **Turn off** | **Turn off** | ||
| Line 132: | Line 122: | ||
| ```shell | ```shell | ||
| - | $ echo none | sudo tee / | + | $ echo none | sudo tee / |
| ``` | ``` | ||
| Line 140: | Line 130: | ||
| ```shell | ```shell | ||
| - | $ echo default-on | sudo tee / | + | $ echo default-on | sudo tee / |
| ``` | ``` | ||
| **Set LED heartbeat** | **Set LED heartbeat** | ||
| Line 147: | Line 137: | ||
| ```shell | ```shell | ||
| - | $ echo heartbeat | + | $ echo heartbeat |
| ``` | ``` | ||
| + | The others are similar. | ||
| + | |||
| You can also experiment with other parameters. | You can also experiment with other parameters. | ||
| - | |||
| - | <tabbox Edge2> | ||
| </ | </ | ||