README and log on all for make

This commit is contained in:
William Clark 2024-08-19 18:26:17 +01:00
parent 23de126d97
commit 644f99985e
2 changed files with 12 additions and 3 deletions

View File

@ -14,7 +14,7 @@ CFILES = $(wildcard *.c)
OBJECTS = $(CFILES:.c=.o)
BIN = bme680
all: spi i2c
all: spi i2c log
log: $(OBJECTS)
@echo ">>> $(BIN)_log_spi"

View File

@ -15,9 +15,18 @@ Connecting the purple BME680 module board to SPI:
| CS | "CS" | GPIO 8 (Pin 24) |
### 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
```