mirror of
https://github.com/eddyem/eddys_snippets.git
synced 2026-03-22 01:31:16 +03:00
create library and make two examples of usage
This commit is contained in:
35
I2Csensors/examples/Readme.md
Normal file
35
I2Csensors/examples/Readme.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Examples of library usage
|
||||
|
||||
### logmany.c
|
||||
|
||||
Creates executable `log`. The purpose of this is to show how you can use library wit lots of sensors (even with fully similar)
|
||||
divided by groups (to prevent same addresses on one bus) switching by PCA9548A.
|
||||
|
||||
Usage:
|
||||
```
|
||||
-H, --hlog=arg humidity logging file
|
||||
-P, --plog=arg pressure logging file
|
||||
-T, --tlog=arg temperature logging file
|
||||
-a, --muladdr=arg multiplexer I2C address
|
||||
-d, --device=arg I2C device path
|
||||
-h, --help show this help
|
||||
-i, --interval=arg logging interval, seconds (default: 10)
|
||||
-m, --presmm pressure in mmHg instead of hPa
|
||||
```
|
||||
|
||||
### single_sensor.c
|
||||
|
||||
Creates executable `single`. Open single sensor and show its parameters.
|
||||
|
||||
Usage:
|
||||
|
||||
```
|
||||
-H, --heater=arg turn on/off heater (if present)
|
||||
-a, --address=arg sensor's address (if not default)
|
||||
-d, --device=arg I2C device path
|
||||
-h, --help show this help
|
||||
-l, --list list all supported sensors
|
||||
-m, --presmm pressure in mmHg instead of hPa
|
||||
-s, --sensor=arg sensor's name
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user