Yes.
When pin configured for input (default) is always read 0 regardless of the voltage level at the pin.
But if you switch pin direction to 'out', then again to 'in' all you read correctly.
If in the script that I put comment out the line:
"echo 'out' > $SYSFSDIR/gpio$1/direction"
is always read 0.
When pin configured for input (default) is always read 0 regardless of the voltage level at the pin.
But if you switch pin direction to 'out', then again to 'in' all you read correctly.
If in the script that I put comment out the line:
"echo 'out' > $SYSFSDIR/gpio$1/direction"
is always read 0.