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

Trigger change in "edge" for specific chanel/pin #2

Open
beachbumbob opened this issue Dec 23, 2020 · 4 comments
Open

Trigger change in "edge" for specific chanel/pin #2

beachbumbob opened this issue Dec 23, 2020 · 4 comments

Comments

@beachbumbob
Copy link

Is there a way to, for example, simulate that a hardware button is triggered? I.E. when a pin goes from HI to LOW or vice versa?

If not, consider this a start of a wish list.

Sincerely
Max

@beachbumbob
Copy link
Author

I created a very ugly solution, which is not 100% done and definitely not tested in any way except while debugging. If you want to use it, do so. My python skills are at best to classify as rudimentary, so if you choose to use my code, read thru it and test it before merge into master. https://github.com/beachbumbob/Mock.GPIO/tree/edge_control/Mock

@codenio
Copy link
Owner

codenio commented Jan 2, 2021

Thanks @beachbumbob for taking this up, will certainly have a look on this.

@beachbumbob
Copy link
Author

Added some code. This code is only "tested/debugged" for python 2.7
Will keep working on it til it works for my current Pi scripts

@beachbumbob
Copy link
Author

I've added so that output logs to a text file. This means that all my needs are satisfied at the moment. I will NOT add a pull request since the code is not ready for that. Feel free to use what ever parts you need if you want it.

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

No branches or pull requests

2 participants