New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add driver for Honeywell ABP2 series pressure sensors #20233
Comments
As the interface of these sensors is either SPI or I2C, what is the best strategy to handle dependencies ? For example, |
I'm taking over this issue from another GitHub account. I mostly wrote the SPI driver. I need to do some clean-up. In the meantime, any idea of how to support SPI and I2C in the same driver the clean way ? |
This depends a bit on the use case. If it makes no sense to have multiple instances of the same device with different interfaces attached, one could go do it the same as e.g. the BMP280/BME280 driver did with the If it would make sense to allow using both, IMO the cleanest would be to split the code over three modules, e.g. |
I got a similar answer from a maintainer of the project in the forum. |
Description
I would like to use the ABP2 series pressure sensors. This series covers a wide range of sensors, but they all share a common software interface, leveraging the driver code.
They come with 2 interfaces : either SPI or I2C.
Useful links
The text was updated successfully, but these errors were encountered: