Skip to content

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

@MostafaRaeisi

Description

@MostafaRaeisi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions