README and log on all for make
This commit is contained in:
parent
23de126d97
commit
644f99985e
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ CFILES = $(wildcard *.c)
|
|||||||
OBJECTS = $(CFILES:.c=.o)
|
OBJECTS = $(CFILES:.c=.o)
|
||||||
BIN = bme680
|
BIN = bme680
|
||||||
|
|
||||||
all: spi i2c
|
all: spi i2c log
|
||||||
|
|
||||||
log: $(OBJECTS)
|
log: $(OBJECTS)
|
||||||
@echo ">>> $(BIN)_log_spi"
|
@echo ">>> $(BIN)_log_spi"
|
||||||
|
13
README.md
13
README.md
@ -15,9 +15,18 @@ Connecting the purple BME680 module board to SPI:
|
|||||||
| CS | "CS" | GPIO 8 (Pin 24) |
|
| CS | "CS" | GPIO 8 (Pin 24) |
|
||||||
|
|
||||||
### build
|
### build
|
||||||
Run `make` to build demo programs `bme680_spi` and `bme680_i2c` that use the pins/dev configured in `spi.c` and `i2c.c`
|
```sh
|
||||||
|
$ make
|
||||||
|
```
|
||||||
|
This will create demo programs `bme680_i2c` and `bme680_spi`, and logging programs `bme680_log_i2c` and `bme680_log_spi`. They all expect the pin/devices specified in `spi.c` and `i2c.c`.
|
||||||
|
|
||||||
Also `make log` creates spi and i2c versions of the log program
|
The loggers spit out the following every minute:
|
||||||
|
```
|
||||||
|
2024-08-19T18:20:00+0100 22.2358 101068 65.8092 11054.4 1
|
||||||
|
```
|
||||||
|
`Date`, `Temperature °C`, `Pressure Pa`, `% RH`, `Measured Gas resistance Ω`, `Heat stability bit`
|
||||||
|
|
||||||
|
>Note: disregard measured gas resistance if the heat stability bit is not 1.
|
||||||
|
|
||||||
## spi demo
|
## spi demo
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user