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

Orange pi 5, OPi.GPIO.output() does change the value inside ".../gpio2/value" file but it doesn't change the physical pin condition #90

Open
MostafaRaeisi opened this issue Jun 5, 2024 · 0 comments

Comments

@MostafaRaeisi
Copy link

MostafaRaeisi commented Jun 5, 2024

Hi everyone,

I am using "Ubuntu image" to lunch my board. when I use "gpio readall" command, it shows me all pins info well. I want to use physical pin 7 (GPIO 2) to control an LED on/off as a test. Controlling the pin with bash is ok, and all these command like "gpio mode 2 out", "gpio write 2 0" works fine and could control LED as well.
--- So, the pin is OK and can control LED with bash command ---

The problem rises when I am using "OPi.GPIO" to control LED condition. I change the "pin_mapping" file to comply "Orange pi 5" board's pin_mapping. Now, everything also goes well and when I run my python code it change the value inside "/sys/class/gpio2/value" file from 0 to 1 and vice versa as it was demanded.
--- So, the code is also OK ---

But, It has no effect on the LED condition!
I mean it can change the value inside "value" file as programmed in "GPIO.py and sysfy.py" files, but has no effect on pin.

Thank anybody in advance if has any idea!? Do I miss something here?

@MostafaRaeisi MostafaRaeisi changed the title Orange pi 5, OPi.GPIO.output() change the value file but it doesn't change the physical pin condition Orange pi 5, OPi.GPIO.output() does change the value inside ".../gpio2/value" file but it doesn't change the physical pin condition Jun 5, 2024
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

1 participant