E.setConsole()? Pico v2.04

Posted on
  • Trying to use E.setConsole() on the Pico v2.04

    I get:

    Uncaught Error: Function "setConsole" not found!

    Obviously I can use USB.setConsole(true) instead, but what if I want to set the console to null, which is in the documentation as

    E.setConsole(null). 
    

    ?

    (Incidentally, it took me a while to figure out that since my ESP8266 is on Serial1 my Pico's internet connection stopped working whenever I removed the USB connection, because (I assume) the console switched automatically to Serial1.)

  • Hi - I'm afraid that's something that'll be in version 2v05. You could flash a 'cutting edge' firmware version from here though which would have it in: http://www.espruino.com/binaries/travis/¬≠master/

    Generally if you want it out the way on earlier versions you'd use something like LoopbackA.setConsole() which is almost like null - although it does use a bit more memory.

  • Thanks. Will switch a spare Pico to cutting edge for the lols

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

E.setConsole()? Pico v2.04

Posted by Avatar for Moray @Moray

Actions