• I just tracked this down - it turns out that there was a regression which meant that mode in SPI.setup wasn't getting read correctly.

    If you use the latest Pico firmware from Git (which annoyingly doesn't come in a CC3000 flavour!) then it'll be fixed and the following will work:

    SPI1.setup({ sck:B3, miso:B4, mosi:B5, baud:1000000, mode:1});
    var wlan = require("CC3000").connect(SPI1, B6 */ CS */, B7 /* EN */, B8 /* IRQ */);
    

    I've put a working build at:

    http://www.espruino.com/tmp/espruino_1v8­5.139_pico_1r3.bin
    

    If you copy that link and paste it into the Web IDE's flasher, it should work fine.

About

Avatar for Gordon @Gordon started