The driver allows using the sensor via I2C bus on a single-board computer like Raspberry Pi, Orange Pi, Asus Tinker Board, etc.
[![License](https://img.shields.io/badge/license-MIT-3178C6?style=flat)](LICENSE) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][github-pre-commit] [![pre-commit.ci](https://results.pre-commit.ci/badge/github/malokhvii-eduard/lkmod-bme280/master.svg)][pre-commit.ci] ![Style Guide](https://img.shields.io/badge/code%20style-linux-FFC557?style=flat) ![clang-format](https://img.shields.io/badge/formatter-clang--format-262D3A?style=flat) [![markdownlint](https://img.shields.io/badge/linter-markdownlint-000?style=flat)][github-markdownlint] [![commitlint](https://img.shields.io/badge/linter-commitlint-F7B93E?style=flat)][github-commitlint] ![platform](https://img.shields.io/badge/platform-linux-FFC557?style=flat) [![Tested on Raspberry Pi](https://img.shields.io/badge/tested%20on-raspberry%20pi-A22846)][raspberrypi] [![Tested on Tinker Board](https://img.shields.io/badge/tested%20on-tinker%20board-005571)][tinker-board]
Final project for my education in Linux Kernel GL BaseCamp. I participated in the course from November 2019 until March 2020.
Firstly you will need to install build dependencies such as compiler
(build-essential
, g++-arm-linux-gnueabihf
, gdb-multiarch
) and
linux-headers. Next, you will need to get source code for exact kernel version
you are running. You can find the kernel version via uname -r
.
make clean modules_release
)make modules_install
)i2cdetect
)echo "bme280 'your address, usually 0x76 or 0x77'" > /sys/bus/i2c/devices/i2c-'your adapter number'/new_device
)👉 If you want to switch to another sensor, use /sys/bme280/i2c
mapping, write to it a number of I2C adapter in decimal and device address in
hex (echo "0 0x77" > /sys/bme280/i2c
).
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/awesome-feature
)git commit -m 'Add awesome feature'
)git push origin feature/awesome-feature
)lkmod-bme280
is licenced under the MIT License. See the LICENSE for
more information.