You are reading a single comment by @ClearMemory041063 and its replies. Click here to read the full conversation.
  • 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
    > 
    

    1 Attachment

About