Are you using WEBIDE to access the PICO?
Here's another example using the options:
//PICO v1.86
var baudrate=9600;
var Port=Serial1;
var P={rx:B7, tx:B6,bytesize:8,parity:'even',stopbits:1};
//var Port=Serial2;
//var P={rx:A3, tx:A2,bytesize:8,parity:'even',stopbits:1};
Port.setup(baudrate,P);
//loopback jumper the tx and rx pins together to test
Port.on('data', function (data) { print("Serial> "+data); });
Port.print("Hello World");
The output:
>echo(0);
=undefined
Serial> H
Serial> e
Serial> l
Serial> l
Serial> l
Serial> o
Serial>
Serial> W
Serial> o
Serial> r
Serial> l
Serial> d
>
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Are you using WEBIDE to access the PICO?
Here's another example using the options:
The output:
1 Attachment