Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

General Question. How can I retrieve board's pin settings? #29

Closed
algsupport opened this issue Jul 7, 2020 · 1 comment
Closed

General Question. How can I retrieve board's pin settings? #29

algsupport opened this issue Jul 7, 2020 · 1 comment

Comments

@algsupport
Copy link

Hello again,

Have a question. Say I set some pins as digital outputs and some others as digital inputs.
Is there a way to retirieve what pin is set how?

Tried to search the API documentation but the only solution I can think is to loop get_pin_state with all ports.
Let me know is something else is available or can be easily implemented?

Thank you.

@MrYsLab
Copy link
Owner

MrYsLab commented Jul 7, 2020

You can get the pin state of any pin as described here.
The get_pin_state method will return a list containig the pin number, the pin type and current value.

@MrYsLab MrYsLab closed this as completed Jul 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants