added code to switch UART pin back to GPIO (thanks TJ)