A copy of the code from the serial example, as with the other piece below it could be changed if preferred.