Skip to content

GPIO High/Low with Input or Output selection problem. #29

@EdTrone

Description

@EdTrone

Simply put, I am trying to use the GPIOs on the Pi5 to be closed contact outputs to trigger the GPI functions of a Decimator DMON 16s multiviewer using Companion on a Pi5. I have written a line in the Pi5 config file that sets GPIOs 1-18 to Outputs and High. But, I discovered that once Companion loads with the selected GPIO ports turned on and set to Outputs they all fall into Low mode creating a closed contact on the selected GPO pins, overriding what I set in the config file.
When I change them to Inputs they go into High mode (open contacts) but, only on GPIs 1-8. GPIs 9-18 stay in Low mode (closed contact). I would very much like a way to be able to select the Input or Output mode as well as be able to select the High & Low position for each GPIO. I would be able to accomplish my same goal using them as inputs, but, unfortunately that only work on 1-8.
I have worked around the issue by making a Companion button that will set all of the selected GPOs to High mode when I press it, but that is an extra step to do to get this function to work as I intend. Is there any way I can make Companion set the GPOs to High mode at the start of the program instead of making a button to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions