pxt-calliope/docs/reference/serial.md
2016-08-10 10:51:55 +01:00

540 B

Serial

Reading and writing data over a serial connection.

serial.writeLine("");
serial.writeNumber(0);
serial.writeValue("x", 0);
serial.writeString("");
serial.readLine();
serial.redirect(SerialPin.P0, SerialPin.P0, BaudRate.BaudRate115200);

See Also

writeLine, writeNumber, writeValue, writeString, readLine, redirect