Skip to content

Commit

Permalink
Add w1-ds18b20 (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimerr authored Jan 9, 2025
1 parent 51aa8a1 commit d3b43c3
Show file tree
Hide file tree
Showing 4 changed files with 669 additions and 0 deletions.
4 changes: 4 additions & 0 deletions general/package/w1-ds18b20/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config BR2_PACKAGE_W1-DS18B20
bool "w1-ds18b20"
help
OneWire DS18B20 GPIO bitbang app
13 changes: 13 additions & 0 deletions general/package/w1-ds18b20/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# w1-ds18b20

This app allows reading ds18b20 sensors in bitbang mode using direct GPIO memory access.
Currently supports only HiSilicon-style GPIO offsets. Pull-up resistor is required.

## Usage

Example: reading temperature using GPIO8_2 on Gk7205V300 (consult datasheet or ipctool output)

```
# ./w1-ds18b20 -base 0x120B8000 -gpio 2
28-4A4E3C1E64FF : 22.44 C
```
Loading

0 comments on commit d3b43c3

Please sign in to comment.