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

Change GPIOD usage case from ctxless to request mode #557

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

2q1w2007
Copy link

@2q1w2007 2q1w2007 commented Jan 8, 2025

I find that on my rpi4 when using GPIOD as GPIO method, the GPIO only turn on sudden and turn off immediately.
I tried control with a simple python script and GPIOD is worked.
The edifference between python and direwolf is that direwolf use a ctxless gpiod function, which will reset immediately on my RPI4.
Thus I changed the source to make GPIOD work in request mode as python script.
Now it works well on my rpi4.

@wb2osz
Copy link
Owner

wb2osz commented Jan 8, 2025

Thank you for this problem report and suggested fix.
I tested on different RPi models but not the model 4.
There might be differences in behavior for different models.
I will take a close look at this.

Thanks & 73,
John WB2OSZ

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

Successfully merging this pull request may close these issues.

2 participants