digitalwrite takes a boolean value. you need to convert the byte to a bool