Up to [cvs.NetBSD.org] / src / sys / dev / i2c
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.3, Sat Dec 3 01:04:43 2022 UTC (3 months, 3 weeks ago) by brad
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
Split the BMP280 / BME280 driver into common code and create I2C and SPI attachments.
Revision 1.2 / (download) - annotate - [select for diffs], Wed Nov 23 23:45:29 2022 UTC (4 months ago) by brad
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (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.1 / (download) - annotate - [select for diffs], Mon Nov 21 21:24:01 2022 UTC (4 months ago) by brad
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.