• Many thanks for the reply Gordon.

    That does seem nice and neat. I didn't find the USB class before (https://www.espruino.com/Reference#l__gl­obal_USB).

    When I try:

    cat /dev/tty.usbmodem00000000001A1
    

    I'm not getting any output - just blank. However when I connect to the board with:

    espruino --board PICO_R1_3 --port /dev/tty.usbmodem00000000001A1
    

    I see a log of correct values there. Any ideas why no output from cat?

    Pico code:

    var i2c = new I2C();
    i2c.setup({ scl: B6, sda: B7 });
    var bme = require("BME280").connect(i2c);
    
    setInterval(() => {
      USB.println(JSON.stringify(bme.getData()­));
    }, 5000)
    

    Thanks again.

About

Avatar for daviestar @daviestar started