项目作者: mc-cat-tty

项目描述 :
I2C library and tools for ESP32
高级语言: C
项目地址: git://github.com/mc-cat-tty/libi2c.git
创建时间: 2021-03-08T11:14:12Z
项目社区:https://github.com/mc-cat-tty/libi2c

开源协议:

下载


libi2c

I2C library and tools for ESP32

Setting up

Clone this repo into lib folder inside PIO workspace

  1. cd lib
  2. git clone https://github.com/mc-cat-tty/libi2c
  3. 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