pxt-calliope/docs/reference/serial.md
2016-05-27 08:55:40 -07:00

13 lines
258 B
Markdown

# Serial
Reading and writing data over a serial connection.
```cards
serial.writeLine("");
serial.writeNumber(0);
serial.writeValue(x, 0);
serial.writeString("");
serial.readLine();
serial.redirect(SerialPin.P0, SerialPin.P0, BaudRate.BaudRate115200);
```