I2C library and tools for ESP32
Clone this repo into lib folder inside PIO workspace
cd lib
git clone https://github.com/mc-cat-tty/libi2c
cd ..
How to extract compensation fields
- download BME/BMP280 datasheet
pdftotext BST-BMP280-DS001-11.pdf -f 21 -l 21
- leave only comprensation parameters table on that text file
cat BST-BMP280-DS001-11.txt | grep dig_ -A2 | tr "\n" " " | tr "\-\-" "\n" | sed -e "s/unsigned short/uint16_t/" | sed -e "s/signed short/int16_t/"
Update START_TIME with date +%s
output