Thanks for you ongoing assistance.sorry, but don't get your point!Because I know very little about this stuff, and with you posting two links, the significance of the other one wasn't clear.What makes you think you will need both?Many thanks, I'll see what I can do with that.The kernel driver is sufficient.
<later edit>
I've downloaded the c file, the associated header file and Makefile.txt. However, I can't see where the various other header files (e.g. linux/*/*) are, and some build instructions would be useful. Any idea on where I might find them ?
Adrian
The driver is part of the linux kernel, it should be enabled by default (sorry, away from any Pi for two weeks so can't run menuconfig for you).
All you need to do is add an overlay to config.txt which enables the driver. 'i2c-sencor' overlay will do that for you when you've added the required parameters.
https://github.com/raspberrypi/linux/bl ... ADME#L2333
Sorry, don't know how skilled you are; need to assume that you have some understanding of what you're doing.
My point, is that I don't understand this, perhaps naively, I assumed that the I2C drivers would be installed (if not enabled) by default. When I set the Pi up, I ran raspi-config and enabled I2C. On my other Pis (a mixture of 2s and 3s), that's all I've needed to do.
From your earlier post (the link to the C code on Github), I interpreted that to mean that I had to compile that code on my Pi, but couldn't work out how to do so. It's over 25 years since I ran a C compiler.
I've added :
Code:
dtoverlay=i2c-sensor,bme280=0x76
to /boot/firmware/config.txt and have rebooted.
The question now is, will that make any difference. As I type, I'm getting readings back from the BME280, but I usually do at this time of day. From the experience of the last couple of days, as I approach midnight (UTC), that might stop.
Adrian
Statistics: Posted by ffoiled — Fri Jun 07, 2024 9:42 pm