Skip to content

nrf: implement checking for pin in use #1089

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

Closed
dhalbert opened this issue Aug 4, 2018 · 2 comments
Closed

nrf: implement checking for pin in use #1089

dhalbert opened this issue Aug 4, 2018 · 2 comments
Assignees
Milestone

Comments

@dhalbert
Copy link
Collaborator

dhalbert commented Aug 4, 2018

busio (and presumably other base modules) do not do pin ownership, so it's possible to create multiple devices using the same pins, e.g.:

spi1 = busio.SPI(board.SCK,board.MOSI,board.MISO)
spi2 = busio.SPI(board.SCK,board.MOSI,board.MISO)

does not complain on nrf52. Or you could even create an SPI bus and and I2C bus on the same pins.

Symptoms noticed in #1088 (thanks @jerryneedell!)

@dhalbert
Copy link
Collaborator Author

dhalbert commented Aug 6, 2018

Related to #1040

@dhalbert dhalbert changed the title nrf: implement pin ownership nrf: implement checking for pin in use Aug 9, 2018
@dhalbert dhalbert self-assigned this Aug 9, 2018
@dhalbert
Copy link
Collaborator Author

dhalbert commented Sep 17, 2018

Fixed by #1158.

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

No branches or pull requests

1 participant