From 644f99985e94961b9236533de8672ec20b2d3f4d Mon Sep 17 00:00:00 2001 From: William Clark Date: Mon, 19 Aug 2024 18:26:17 +0100 Subject: [PATCH] README and log on all for make --- Makefile | 2 +- README.md | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8750d4e..1ed2042 100644 --- a/Makefile +++ b/Makefile @@ -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" diff --git a/README.md b/README.md index d33bd0e..9f0b960 100644 --- a/README.md +++ b/README.md @@ -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 ```