I am trying to find out if a specific GPIO is set on
I need something similar to this php command
exec ("gpio read ".$i, $val_array[$i], $return );
but instead of returning
HIGH (0 or 1) in the case of wiringpi, i need it to return out or in. as a variable/
(real beginner here)
Is it possible?