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

How do we want to handle multiple pin objects being created for the same physical pin? #2

Open
metasoarous opened this issue Mar 25, 2015 · 0 comments
Labels

Comments

@metasoarous
Copy link
Member

It's conceivable this could be useful, but could also cause havoc if two different pin instances point to the same physical pin but have different modes, weirdness might ensue. Also, philosophically, it might make more sense for pin abstractions to be inherently stateful, and singletons. This could be accomplished by having the boards enforce singleton pin instances. However, it's also possible that even having pin objects is a leaky abstraction; maybe it's simpler just to focus on board objects and their collective state? Could always rename as board-ctrl...

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

No branches or pull requests

1 participant