Read the buffered serial data as a string
serial.readString();
The following program scrolls text on the screen as it arrives from serial.
basic.forever(() => { basic.showString(serial.readString()); });
serial, serial write line, serial write value
Edit this page on GitHub