Wykres commitów

23 Commity (master)

Autor SHA1 Wiadomość Data
robert-hh a9a708015b
bme280_xxx.py: Check for the conversion to start.
It may happen that the conversion was not started yet when the
first check for conversion done is done. Then the sensor returns
the previous values. The change adds a short wait until the
conversion is started. The longest wait time is about 5 ms.

Side change: Fix the error message for a wrong oversample argument.

Signed-off-by: robert-hh <robert@hammelrath.com>
2025-06-15 09:55:13 +02:00
Robert Hammelrath 7032d922c6
Merge pull request #18 from mattytrentini/add-mip-package-json
Add MicroPython package.json for MIP installation
2025-05-22 09:33:29 +02:00
Matt Trentini acc5eb699c Add MicroPython package.json for MIP installation
Adds package.json file with the proper format for MicroPython Package Manager (MIP).
This allows the library to be installed directly using mip.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-22 12:06:23 +10:00
robert-hh f96af54523
README.md: Fix typos.
Signed-off-by: robert-hh <robert@hammelrath.com>
2025-04-19 09:24:51 +02:00
robert-hh 442dfb7928
README.md: Fix the example.
There is no module called Pin.

Signed-off-by: robert-hh <robert@hammelrath.com>
2025-04-16 11:55:13 +02:00
robert-hh 814c5d4926
bme280_int.py: Slight change to the constructor.
Set the mode on init, like the float version does. Since the mode
is set again before reading, that shoud not change much.

Signed-off-by: robert-hh <robert@hammelrath.com>
2024-10-30 12:16:15 +01:00
robert-hh 32b9fe9641
bme280_int.py: Fix the range for sealevel setting.
It's now Pa in the range 30000 to 120000.

Signed-off-by: robert-hh <robert@hammelrath.com>
2024-03-03 20:59:23 +01:00
robert-hh 6c0b723039
bme280*.py: Clamp the humidity results in the range 0-100 %.
The sensor may deliver values slightly out of range.

Signed-off-by: robert-hh <robert@hammelrath.com>
2024-02-07 14:15:23 +01:00
robert-hh f1e555b2cd
README.md: Fix a typo.
Signed-off-by: robert-hh <robert@hammelrath.com>
2023-09-14 14:02:27 +02:00
robert-hh b242b88b9e bme280: Update the link to the data sheet. 2022-10-03 18:17:01 +02:00
robert-hh 37a52e149e bme280: Allow using a tuple for the mode parameter. 2022-09-07 21:53:57 +02:00
Robert Hammelrath aaf2a4f271 bme280: Fix typos in bme280.md.
Thanks to @CesiumK9 for bringing them up.
2021-12-19 09:29:07 +01:00
robert 0da810b150 all: Update & rearrange the license notice
The license situation is a little bit fuzzy, since the actual code
state is based on various sources at different times. The most
common license statements in these sources use MIT wording, even if is
not explicitely referenced. So I keep it like that.
2020-12-07 09:17:00 +01:00
robert 598e8c6286 bme280_*.py: Add an one second timeout
Add a timeout when waiting for the sensor to flag "ready".
This is set to about 1 second now.
2020-11-28 13:51:01 +01:00
robert 79ccf348ec BME280*.py: Align error message to the expcted parameters. 2019-12-27 17:56:58 +01:00
robert 3bc048f93e bme280*.py: Use names for the power modes. 2019-12-19 15:49:15 +01:00
robert-hh a7074fd2d5
Update README.md
Some minor fix in the example
2019-01-12 20:34:09 +01:00
hh 0223507e1e bme280_xxx.py: Make the code a little bit more PEP8 compliant 2019-01-01 11:10:11 +01:00
hh 92773a9c95 bme280_xxx.py: Simplify calibration value reading 2018-11-27 21:41:35 +01:00
hh db8689bd9a bme280_xxx: Check the status register for completion
Instead of just waiting a safe time, check the status register
for completion of the measurement. The drawback is a slightly
increased power consumption.
2018-11-19 21:47:38 +01:00
hh 7bd268d0fa README.md: Fix copy & paste error 2018-11-18 20:23:00 +01:00
hh 5a283cf149 bme280_xxx.py: Add methods for altitude and dew_point
The Documentation is extended accordingly
2018-11-18 20:20:08 +01:00
hh d8d78924a8 bme280_xxx.py: Microypthon driver for the BME280 sensor
Initial commit. Files:
bme280_int.py: Driver using integer arithmetic for compensation
bme280_float.py: Driver using floating point arithmetic for compensation
README.md: Documentation
bmetest.py: Sample test code.
2018-11-11 16:01:02 +01:00