Write character to debug device.
Writes a character to the debug device. If there are no errors, the same character that has been written is returned.