-
Notifications
You must be signed in to change notification settings - Fork 5
Description
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?