gpioX/direction has a newline at the end