Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mc-cat-tty/libi2c

I2C library and tools for ESP32
https://github.com/mc-cat-tty/libi2c

bme280 bmp280 esp-idf esp32 i2c i2c-bus i2c-library libi2c

Last synced: 7 days ago
JSON representation

I2C library and tools for ESP32

Awesome Lists containing this project

README

        

# libi2c
I2C library and tools for ESP32

## Setting up
Clone this repo into _lib_ folder inside PIO workspace
```
cd lib
git clone https://github.com/mc-cat-tty/libi2c
cd ..
```

## BMP280
How to extract compensation fields
1. download BME/BMP280 datasheet
2. `pdftotext BST-BMP280-DS001-11.pdf -f 21 -l 21`
3. leave only comprensation parameters table on that text file
4. `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/"`

## Clock
Update START_TIME with `date +%s` output