You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi Andrey, One thought is that using SPI1.send(0x00,A4); will lower A4 and raise it for each byte. You may also find that the SPI 'mode' is wrong (CPOL/CPHA). You're better off doing:


    (or actually doing the raising and lowering of A4 manually, and not specifying it for SPI.send at all)

    The code that I have been using (different pins) is:

    var EN = B7;
    var IRQ = B8;
    var CS = B6;       
    SPI1.setup({sck:B3,miso:B4, mosi:B5,mode:1/*Mode 1   CPOL= 0  CPHA= 1*/, baud: 1000000});
    while (!digitalRead(IRQ)); // wait for IRQ high
    while (digitalRead(IRQ)); // wait for IRQ low
    // 1 = command 
    // IRQ goes high after this
    SPI1.send([0,1,0,0x40,1,1]); // last digit should be 1 according to EmbeddedAdventures  

    However I haven't had much luck with the Embedded Adventures module. I'm in contact with them and hopefully we'll figure out what the problem is.

    There is CC3000 support in Espruino itself though (which works with the Adafruit module) - see

    Until the Espruino board comes out you'll have to compile your image with USE_CC3000=1 and USE_NET=1 in the Makefile though (I've been developing using the F4DISCOVERY board and it works well).


Avatar for Gordon @Gordon started