Use parseports function for digital output