androidthings / sample-simplepio

Basic Peripheral I/O examples with Android Things
Apache License 2.0
187 stars 79 forks source link

is there an API to check GPIO status is in use or not in use? #12

Closed Yanqilong closed 5 years ago

Yanqilong commented 5 years ago

I want to know Android Things Platform whether to provide an API to check GPIO status? because I want to make sure GPIO not in use before I open GPIO, I don't want to use try..catch instead of this logic, could you kindly of my question? Thanks.

Fleker commented 5 years ago

No, the expectation is that the device owner knows what GPIOs are already open and active.