Skip to content

Optocouplers problem #13

Description

@mallendeo

Hi, the optocoupler I bought isn't working for some reason, so I'm using this relay instead.

The problem I have, is that the logic needs to be inverted for this relay to work, otherwise it will initialized with the "on" state and the PC won't be able to start. Inverting the logic at the relay as "normally open" will work only if the rpi is on.

For the moment I am manually editing the set_output and write methods on
/usr/lib/python3.8/site-packages/kvmd/gpio.py for this to work.

We could use an ENV variable, like GPIO_INVERT_WRITE and GPIO_INVERT_READ.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions