read gpio direction