This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
products:sbc:common:applications:gpio:40pin-header [2022/10/18 03:14] hyphop |
products:sbc:common:applications:gpio:40pin-header [2023/08/16 06:31] jacobe [Set GPIO value] |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== GPIO Header ====== | ====== GPIO Header ====== | ||
- | Universal GPIO 40 pins board header, used for communication between board and different external devices. | + | ===== GPIO usage examples ===== |
- | + | ||
- | ===== Control | + | |
<WRAP important > | <WRAP important > | ||
Line 16: | Line 14: | ||
```shell | ```shell | ||
- | $ echo 465 | sudo tee / | + | $ echo 111 | sudo tee / |
``` | ``` | ||
Line 24: | Line 22: | ||
```shell | ```shell | ||
- | $ echo out | sudo tee / | + | $ echo out | sudo tee / |
- | $ echo in | sudo tee / | + | $ echo in | sudo tee / |
``` | ``` | ||
Line 31: | Line 29: | ||
```shell | ```shell | ||
- | $ echo 1 | sudo tee / | + | $ echo 1 | sudo tee / |
- | $ echo 0 | sudo tee / | + | $ echo 0 | sudo tee / |
``` | ``` | ||
Line 38: | Line 36: | ||
```shell | ```shell | ||
- | $ cat / | + | $ cat / |
``` | ``` | ||
Line 44: | Line 42: | ||
```shell | ```shell | ||
- | $ echo 465 | sudo tee / | + | $ echo 111 | sudo tee / |
``` | ``` | ||
Line 52: | Line 50: | ||
```shell | ```shell | ||
- | khadas@Khadas: | + | khadas@Khadas: |
tee: / | tee: / | ||
``` | ``` | ||