Skip to content
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 new IO type and providers and interface Sensor #199

Closed
wants to merge 2 commits into from
Closed

Add new IO type and providers and interface Sensor #199

wants to merge 2 commits into from

Conversation

taartspi
Copy link
Collaborator

This add support into the pi4j-core. It is a new IO type Sensor. also defines an interface Sensor, Config/builder and provider.

There exist https://github.com/taartspi/Pi4J_V2-TemperatureSensor This implements an I2C device that uses a BMP280 sensor, requiring this branch. This branch also documents connecting an Adafruit BMP280 to a Pi.

@taartspi
Copy link
Collaborator Author

taartspi commented Mar 3, 2022

@FDelporte Good day. I don't see the proper way to connect this pull request to the issue 197. You have a quick pointer on doing this ? thanks Tom

@FDelporte
Copy link
Member

I'm not really sure about this PR. It brings in a specific use-case/device, something that we removed when moving from V1 to V2 to improve maintainability. What do you think @eitch @savageautomate ?

@FDelporte
Copy link
Member

Relates to #197

@taartspi
Copy link
Collaborator Author

Determined this code change is too specific to only two sensor types. Suggested this implementation could define only the generic interfaces of possible sensor types. Suggested ENUM be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants