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__global_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.
@daviestar started
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.
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__global_USB).
When I try:
I'm not getting any output - just blank. However when I connect to the board with:
I see a log of correct values there. Any ideas why no output from cat?
Pico code:
Thanks again.