Skip to content

Export GPIO pin needs delay #2

@Rudie

Description

@Rudie

The first time after bootup I get a permission errors both for setting the direction and the value.
After some debugging I found that after the line "echo "$1" > $BASE_GPIO_PATH/export", I needed to add a delay, so I added "sleep 0.05 # Wait 50 ms", which resolved the issue.
I am running Python 3.7.3 on a Raspberry Pi 3B (it is in fact the latest "Octopi" software for controlling a 3D printer).

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