Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mc-cat-tty/libi2c
- Owner: mc-cat-tty
- Created: 2021-03-08T11:14:12.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-27T11:01:43.000Z (over 2 years ago)
- Last Synced: 2024-10-28T00:21:30.140Z (about 2 months ago)
- Topics: bme280, bmp280, esp-idf, esp32, i2c, i2c-bus, i2c-library, libi2c
- Language: C
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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