replaced fs get_set with gpio