Skip to content

Commit d3b43c3

Browse files
authored
Add w1-ds18b20 (#1659)
1 parent 51aa8a1 commit d3b43c3

File tree

4 files changed

+669
-0
lines changed

4 files changed

+669
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
config BR2_PACKAGE_W1-DS18B20
2+
bool "w1-ds18b20"
3+
help
4+
OneWire DS18B20 GPIO bitbang app
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# w1-ds18b20
2+
3+
This app allows reading ds18b20 sensors in bitbang mode using direct GPIO memory access.
4+
Currently supports only HiSilicon-style GPIO offsets. Pull-up resistor is required.
5+
6+
## Usage
7+
8+
Example: reading temperature using GPIO8_2 on Gk7205V300 (consult datasheet or ipctool output)
9+
10+
```
11+
# ./w1-ds18b20 -base 0x120B8000 -gpio 2
12+
28-4A4E3C1E64FF : 22.44 C
13+
```

0 commit comments

Comments
 (0)