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.
mode
SPI.setup
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_1v85.139_pico_1r3.bin
If you copy that link and paste it into the Web IDE's flasher, it should work fine.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I just tracked this down - it turns out that there was a regression which meant that
mode
inSPI.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:
I've put a working build at:
If you copy that link and paste it into the Web IDE's flasher, it should work fine.