Moving CC3000 IRQ pin to B2, so I2C1 can be used

Posted on
  • In default configuration, CC3000 will use all pins available for I2C1 SCK - which is kinda lame.

    Can I move it to B2 by changing

    [#define](http://forum.espruino.com/sear­ch/?q=%23define) WLAN_IRQ_PIN      (Pin)(JSH_PORTB_OFFSET + 8) // active low
    

    to

    [#define](http://forum.espruino.com/sear­ch/?q=%23define) WLAN_IRQ_PIN      (Pin)(JSH_PORTB_OFFSET + 2) // active low
    

    in board_spi.h?

  • There are still other I2C ports available though?

    But yes, changing the definitions should work fine.

  • Yeah - there's I2C2, so this is only relevant if you need two I2C buses for something. But it's good to know I have that option.

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

Moving CC3000 IRQ pin to B2, so I2C1 can be used

Posted by Avatar for DrAzzy @DrAzzy

Actions