Skip to content

Sending inline module fails silently on command line #6

@andrewn

Description

@andrewn

Hi,

I'm writing an application that uses espruinotool to send code to a Pico when the app starts.

The code I'm using is source.js in this gist . I declare the CAP1188 module but in this example I'm not using it, instead I have a setInterval at the bottom that should flash the onboard LED on/off.

I send the file to the Pico using espruinotool --verbose --port /dev/cu.usbmodem1411 /Users/andrew/Projects/oss/ucl-sensors/sensorama/espruino/source.js espruino-tools and the output is here in terminal-output.log.

There do not seem to be any errors in the log output but the LED on the Pico does not flash.

I've also tried using the --minify flag and this has the same (non) result.

Sending the code using the Espruino Web IDE flashes the LED as expected. Sending the code via the CLI to an Espruino v1.3b also flashes the LED.

Any ideas what I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions