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

[DRAFT] Add Support for 1-Wire Protocol #435

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Conversation

dariuszzbyrad
Copy link
Member

@dariuszzbyrad dariuszzbyrad commented Dec 30, 2024

This PR introduces a proposed API to support 1-Wire devices in the Pi4J library. The current state includes only the API definition, with implementation in the LinuxFS plugin and a mock version still pending.

New API

The API is available at the following location:
OneWireFileDataReaderWriter

Example Usage

An example demonstrating how to use this API with DS18B20 and DS2413 devices can be found here:
OneWireTest.java

Status

  • API definition
  • Implementation in the LinuxFS plugin
  • Create a mock implementation for testing purposes
  • Verify functionality with real devices.
  • Extend the documentation to cover the new API and its usage.

@FDelporte @taartspi @eitch Feedback on the API design and usability is particularly welcome at this stage.

@dariuszzbyrad dariuszzbyrad changed the title DRAFT [DRAFT] Add Support for 1-Wire Protocol Dec 30, 2024
Copy link
Member

@eitch eitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API looks quite well and sure should implement a basic 1-wire api to use. I have no objections, thanks @dariuszzbyrad

@eitch eitch requested a review from FDelporte January 6, 2025 12:04
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