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

Obsolete PinNumberingScheme #2358

Merged
merged 14 commits into from
Nov 14, 2024
Merged

Obsolete PinNumberingScheme #2358

merged 14 commits into from
Nov 14, 2024

Conversation

krwq
Copy link
Member

@krwq krwq commented Oct 17, 2024

Let's see what breaks and commit fixes here.

Microsoft Reviewers: Open in CodeFlow

Let's see what breaks
@dotnet-policy-service dotnet-policy-service bot added the area-System.Device.Gpio Contains types for using general-purpose I/O (GPIO) pins label Oct 17, 2024
Copy link
Member Author

@krwq krwq left a comment

Choose a reason for hiding this comment

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

use using

/// <param name="gpioController">A Gpio Controller if you want to use a specific one</param>
/// <param name="shouldDispose">True to dispose the Gpio Controller</param>
public LiquidLevelSwitch(int dataPin, PinValue liquidPresentPinState, GpioController? gpioController = null, PinNumberingScheme pinNumberingScheme = PinNumberingScheme.Logical, bool shouldDispose = true)
public LiquidLevelSwitch(int dataPin, PinValue liquidPresentPinState, GpioController? gpioController = null, bool shouldDispose = true)
Copy link
Member Author

@krwq krwq Oct 24, 2024

Choose a reason for hiding this comment

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

since we are touching this we should consider using Pin class here given we're taking controller and a pin

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should add those ctors, not replace them. And better in a separate PR.

@pgrawehr pgrawehr added this to the v4.0.0 milestone Nov 2, 2024
Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

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

Other than that one comment about considering not breaking compat in iot.device.bindings, this LGTM. Thanks folks!

@pgrawehr pgrawehr linked an issue Nov 10, 2024 that may be closed by this pull request
@krwq krwq merged commit 37291f6 into main Nov 14, 2024
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Device.Gpio Contains types for using general-purpose I/O (GPIO) pins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plan to remove PinNumberingScheme.Board
4 participants