Hi All,
I have been trying to get the BME280 to work with the nRF52 Development Kit using the Zephyr Framework,
I can't seem to get the firmware to pick-up the BME280 sensor, although I have define the correct I2C address, below is the code Main.c code and the bme.c and the bme.h as well as my prj.conf and the overlay file.
Here is the bme.c code
here is the bme.h code
here is the overlay file
here is the prj.conf
and the cmake:
cmake_minimum_required(VERSION 3.13.1)
#include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(ZEPHYR_BME280)
FILE(GLOB app_sources ../src/*.c*)
target_sources(app PRIVATE ${app_sources})
#target_sources(app PRIVATE src/bme280.c src/main.c)
message(STATUS "Current source directory: ${CMAKE_CURRENT_SOURCE_DIR}")
Any help would be greatly appreciated!