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

refactor: add display.Pin interface #749

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

deadprogram
Copy link
Member

This PR is to add a display.Pin interface and use it everywhere that is easy to do so.

Related to work in PR #742 this is intended to help disconnect the drivers repo even more from the machine package.

The remaining drivers that use machine.Pin directly have various complications such as changing the pin config from input to output and back, which will have to be addressed in some different way.

@deadprogram deadprogram changed the base branch from release to dev March 16, 2025 16:38
@sago35
Copy link
Member

sago35 commented Mar 16, 2025

I think defining drivers.Pin is a very good idea.
Except for the examples/ directory, machine.Pin should be completely replaceable.

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