This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
products:sbc:common:applications:gpio:led [2022/08/29 03:18] haylrn [Edge2] |
products:sbc:common:applications:gpio:led [2022/08/29 09:59] nick [Setup LED] |
||
---|---|---|---|
Line 10: | Line 10: | ||
===== Device LED configurations ===== | ===== Device LED configurations ===== | ||
- | | Device ^ Node name ^ LED color ^ | + | | Device ^ Node name |
- | ^ VIM1/2 | / | + | ^ VIM1/2 | / |
- | ^ | + | ^ |
- | | ::: | / | + | | ::: | / |
- | ^ VIM1S/VIM4 | / | + | ^ VIM1S/VIM4 | / |
- | ^ Edge1 | / | + | ^ Edge1 | / |
- | | ::: | / | + | | ::: | / |
- | ^ Edge2 | / | + | ^ Edge2 | / |
- | | ::: | / | + | | ::: | / |
Line 79: | Line 79: | ||
```shell | ```shell | ||
- | $ echo heartbeat | + | $ echo heartbeat |
``` | ``` | ||
Line 93: | Line 93: | ||
```shell | ```shell | ||
- | $ echo none | tee / | + | $ echo none | sudo tee / |
``` | ``` | ||
Line 101: | Line 101: | ||
```shell | ```shell | ||
- | $ echo default-on | tee / | + | $ echo default-on | sudo tee / |
``` | ``` | ||
**Set LED heartbeat** | **Set LED heartbeat** | ||
Line 108: | Line 108: | ||
```shell | ```shell | ||
- | $ echo heartbeat | + | $ echo heartbeat |
``` | ``` | ||
Line 114: | Line 114: | ||
<tabbox Edge2> | <tabbox Edge2> | ||
- | We will use led_b led_g led_r as an example: | + | We will use red_led blue_led green_led |
**Turn off** | **Turn off** | ||
Set the LED node parameter to '' | Set the LED node parameter to '' | ||
- | ```shell | ||
- | $ su | ||
- | ``` | ||
```shell | ```shell | ||
- | # echo none | tee / | + | $ echo none | sudo tee / |
``` | ``` | ||
Line 132: | Line 129: | ||
```shell | ```shell | ||
- | # echo default-on | tee / | + | $ echo default-on | sudo tee / |
``` | ``` | ||
**Set LED heartbeat** | **Set LED heartbeat** | ||
Line 139: | Line 136: | ||
```shell | ```shell | ||
- | # echo heartbeat | + | $ echo heartbeat |
``` | ``` | ||
The others are similar. | The others are similar. |