The NetBSD Project

CVS log for src/sys/dev/i2c/Attic/bmx280.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / i2c

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7, Sat Dec 3 01:04:43 2022 UTC (14 months, 3 weeks ago) by brad
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
FILE REMOVED



Split the BMP280 / BME280 driver into common code and create I2C and
SPI attachments.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 1 02:29:37 2022 UTC (14 months, 3 weeks ago) by brad
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)



Use a better choice for the print format string.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 1 00:47:51 2022 UTC (14 months, 3 weeks ago) by brad
Branch: MAIN
Changes since 1.4: +22 -9 lines
Diff to previous 1.4 (colored)



Correct the humidity conversion for the BME280

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 24 21:07:05 2022 UTC (15 months ago) by brad
Branch: MAIN
Changes since 1.3: +9 -4 lines
Diff to previous 1.3 (colored)



Mention where in the datasheet the compensation algorithms came from.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Nov 23 23:45:29 2022 UTC (15 months ago) by brad
Branch: MAIN
Changes since 1.2: +54 -7 lines
Diff to previous 1.2 (colored)



Use kpause() instead of delay() in the measurement cycle.  Try and
derive the proper wait delay for the measurement based upon the over
sampling setting and allow the wait factor multiplier to be adjusted.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Nov 22 19:40:31 2022 UTC (15 months ago) by brad
Branch: MAIN
Changes since 1.1: +11 -5 lines
Diff to previous 1.1 (colored)



Read the datasheet more closely and put in some delays.  The chip will
just return junk if the wait is not long enough to allow a measurement
to start.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Nov 21 21:24:01 2022 UTC (15 months ago) by brad
Branch: MAIN



A driver for the Bosch BMP280 / BME280 temperature, humidity and
atmospheric pressure sensor.  This is an inexpensive to moderately
expensive chip available from a large number of places.  The driver
supports all aspects of the two chips, except for the repeating read
mode which would allow for sub-second queries, such as fall detection
or perhaps even as an altimeter.  This driver also only supports the
I2C interface and not the SPI interface.

The BME280, the one with humidity, is not fully tested at this point,
awaiting upon a breakout board and may not show proper humidity.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>