PiGPIOd - reading status of output pins

I need to know the status of a pin that I control (with GPIOd). I can set it as input and output, but when I change its status, the output node doesn't say anything.
I need this to double check if some commands are working.
Thanks!

A pin can’t be both an input and output. If set to an output then the status will show what you set it to. (But won’t guarantee that the pin is that level if there is a hardware failure). If you need to check the hardware state then you need to feed that back into another gpio set as an input.

Damn! With WiringPi the commadn gpio readall could read all the pins.
@dceejay Do you think that wiring the output pins to input pins is the only option?

I am pretty sure that it isn't reading the output pins, all it is doing is telling you what value you last wrote to it. But you can know that anyway, as it is you that wrote it.

Thanks!
.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.