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 05:08] nick |
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 Nodes ===== | + | ===== Device |
- | < | + | ^ Device |
+ | ^ | ||
+ | ^ VIM3/ | ||
+ | | ::: | ||
+ | ^ VIM1S/ | ||
+ | ^ Edge1 | ||
+ | | ::: | ||
+ | ^ Edge2 | ||
+ | | ::: | ||
+ | | ::: | ||
- | 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 76: | 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 107: | Line 80: | ||
```shell | ```shell | ||
- | $ echo heartbeat | + | $ echo heartbeat |
``` | ``` | ||
Line 114: | Line 87: | ||
<tabbox Edge1> | <tabbox Edge1> | ||
- | We will use sys_led as an example: | + | We will use '' |
**Turn off** | **Turn off** | ||
+ | |||
Set the LED node parameter to '' | Set the LED node parameter to '' | ||
Line 135: | Line 109: | ||
```shell | ```shell | ||
- | $ echo heartbeat | + | $ echo heartbeat |
``` | ``` | ||
Line 141: | 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. | ||
</ | </ |