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

Read and load current HW config from hardware at startup #39

Closed
andrewdavidmackenzie opened this issue May 22, 2024 · 2 comments
Closed
Assignees
Labels
blocked can't work on it for now hardware Relates to configuration of or interaction with Pi GPIO hardware idea An idea for discussion before deciding to do it!

Comments

@andrewdavidmackenzie
Copy link
Owner

ppal docs state that "Pins are constructed by retrieving them using Gpio::get.

An unconfigured Pin can be used to read the pin’s mode and logic level."

so a new option would be at start-up to read the actual HW setup, and load that and show in the UI, to not interrupt how things are working on the HW.

@andrewdavidmackenzie andrewdavidmackenzie changed the title Load actual HW config at startup Read and load current HW config from hardware at startup May 22, 2024
@andrewdavidmackenzie andrewdavidmackenzie added the idea An idea for discussion before deciding to do it! label May 22, 2024
@andrewdavidmackenzie
Copy link
Owner Author

More thoughts. On a Pi, it's possible that other applications are using some of the pins I think....

so, it would be great at start-up to scan all the pins and see if we have the ability to configure them.
If we cannot, we should report them as unusuable, and disable them on the UI, maybe with some tooltip to explain why.

@andrewdavidmackenzie andrewdavidmackenzie added the hardware Relates to configuration of or interaction with Pi GPIO hardware label Jun 1, 2024
@andrewdavidmackenzie andrewdavidmackenzie self-assigned this Jun 5, 2024
@andrewdavidmackenzie
Copy link
Owner Author

Paused for now.

See golemparts/rppal#150

@andrewdavidmackenzie andrewdavidmackenzie added the blocked can't work on it for now label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked can't work on it for now hardware Relates to configuration of or interaction with Pi GPIO hardware idea An idea for discussion before deciding to do it!
Projects
None yet
Development

No branches or pull requests

1 participant