added very simple functions to write/read gpio values