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:1wire [2022/08/05 03:36] olivia [Enable 1-Wire Bus] |
products:sbc:common:applications:gpio:1wire [2023/11/07 04:59] (current) nick old revision restored (2023/11/07 04:42) |
||
---|---|---|---|
Line 9: | Line 9: | ||
You can find the default PIN used for '' | You can find the default PIN used for '' | ||
- | | | + | | |
- | ^ VIM1/ | + | ^ VIM1/ |
- | ^ VIM3/ | + | ^ VIM3/ |
- | ^ VIM4 | + | ^ VIM4 |
- | ^ Edge1 | 30 | + | ^ VIM1S | 36 |
+ | ^ Edge1 | 30 | ||
+ | | | ||
===== Enable 1-Wire Bus ===== | ===== Enable 1-Wire Bus ===== | ||
Line 27: | Line 29: | ||
```shell | ```shell | ||
overlays=onewire | overlays=onewire | ||
+ | ``` | ||
+ | <tabbox VIM3 with 5.15 kernel> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable onewire, you need to add '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=onewire | ||
+ | |||
+ | ``` | ||
+ | |||
+ | <tabbox VIM3L with 5.15 kernel> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable onewire, you need to add '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=onewire | ||
+ | |||
``` | ``` | ||
Line 34: | Line 59: | ||
- | e.g. Enable | + | e.g. To enable |
```shell | ```shell | ||
Line 40: | Line 65: | ||
``` | ``` | ||
+ | <tabbox VIM1S> | ||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable onewire, you need to add '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=onewire | ||
+ | |||
+ | ``` | ||
</ | </ | ||
Line 47: | Line 82: | ||
</ | </ | ||
- | ===== Disable 1-Wire to Use GPIO ===== | ||
- | |||
- | If you want to use normal GPIO instead of 1-Wire, you can remove the 1-Wire node in device tree overlays configration file. | ||
===== Get Sensor Data ===== | ===== Get Sensor Data ===== | ||
Line 75: | Line 107: | ||
b1 01 4b 46 7f ff 0c 10 d8 t=27062 | b1 01 4b 46 7f ff 0c 10 d8 t=27062 | ||
``` | ``` | ||
+ | |||
+ | |||
+ | ===== Disable 1-Wire to Use GPIO ===== | ||
+ | |||
+ | If you want to use normal GPIO instead of 1-Wire, you can remove the 1-Wire node in [[products: |