I've also found it complicated at times to determine which library to use. Here's some of my thought processesWhich Python library do you use with the BMP280 temperature and pressure sensor? I found a few. Adafruit and a couple on Pypi.
If I post code using this device, I would like to know which is the most popular.
Edit: I usually use Adafruit, but this time I opted for pimoroni's code here:
https://pypi.org/project/bmp280/
It has some issues, but I fixed those n my version.
- I normally check the manufacturers web site. In your case https://www.bosch-sensortec.com/product ... rs/bmp280/. I do this because sometimes they have a newer model in the family e.g. BMP28* which may include a more recent driver that supports the older model. In your case, it looks like you need the BMP280 because the newer BMP390 does not show support for the BMP280.
- This evaluation can also direct you to software from other sources like PyPl. A made up example would be a BMP288 driver.
- I've used the PIMORONI's libraries but only when I'm programming on one of their boards. They normally have any selectable pin/address settings already set for the board.
- It also comes down to the board I'm using. The library for uPython on PICO is sometimes different than for Python on other RPI's
- For no other reason other than trying to eliminate potential preference for a specific platform (e.g. Adafruit, Pimoroni) I guess I tend towards, what I consider more generic,PyPl.
Statistics: Posted by DS256 — Tue Oct 29, 2024 11:56 am