redirect To USB

Direct the serial input and output to use the USB connection.

The micro:bit is set to use the USB connection for serial data by default. If serial data is currently redirected, using redirect, to the pins, you can set it back to use USB.

serial.redirectToUSB()

See also

serial, redirect