You are reading a single comment by @loopMasta and its replies. Click here to read the full conversation.
  • You'd have to send the code, save() it, then unplug and re-plug - did you do that?

    Espruino can only add new USB devices when it connects to USB - but after it's done that then you can dynamically change the code as usual.

    (It also works without save() if you just keep Espruino powered with something like a battery)

    I finally merged the USB code into the master branch, so for an up to date build you can just use one of the latest builds, like this one. The build you have should still work though.

  • Yes i did uploaded the code, called save() and re-pluged it. It did not work. I tried several times. Today i restarted my Mac with the still connected pico and suddenly it worked. Exactly 3 times. After that the pico did not respond anymore. (No LED on|off toggle) After opening the WEB-IDE i did get this message.

    Connected
    >Loading from flash...
    WARNING: Expecting a number or something iterable, got undefined
    WARNING: Expecting a number or something iterable, got undefined
    >
    =undefined
    >
    =undefined
    WARNING: Expecting a number or something iterable, got undefined
    WARNING: Expecting a number or something iterable, got undefined
    WARNING: Expecting a number or something iterable, got undefined
    WARNING: Expecting a number or something iterable, got undefined
    WARNING: Expecting a number or something iterable, got undefined
    > 
    
About

Avatar for loopMasta @loopMasta started