In CC3000, there's a table that decides if the IRQ pin is an interrupt pin. It looks like this table is just incorrect when it comes to the ATmega32u4 Leonardo.
Working for me on the Micro.
Changed this line: #elif defined(__AVR_ATmega32U4__)
to: #else
and wired
/*
CC3000 MICRO MEGA
CLK/SCK SCK 52
MISO MISO 50
MOSI MOSI 51
CS 10 10
VBEN 5 5
IRQ 3 3
*/
Thanks for the help
I was having issues at first myself. Couldn't seem to find too many resources for the micro + CC3000. Got it working with the examples so I decided to post my diagram. Hope this helps someone like myself.
cwren wrote:The buildtest example runs, but the SendTweet example is too big for the Micro:
Binary sketch size: 31,100 bytes (of a 28,672 byte maximum)
I'm pretty sure the documentation for the library says the Tweet example doesn't work.
Oh I know it doesn't work. The problem is that it doesn't even fit. I only care because I wanted to use HMAC to authenticate connections since the Arduino can't do SSL, and that example uses both the cc3000 library and a cut-down version of the BANNED library, so I wanted to see it compile, install, and fail before I started modifying it - managed to compile but not install.
I was able to get the example into the Micro by clipping out a bunch of strings: making the error strings shorter, and also clipping out the very verbose OAuth message. Since I am rolling my own HMAC protocol it will be a lot less verbose than OAuth. However that's not going to leave me a lot of head room for actual application code.
And in any case I've gotten derailed by the fact that the CC3000 will only succeed at DHCP one a day or so. It seems fail on trying to get DHCP when there is an existing lease, but I'm trying to isolate that problem to be sure.
Thanks for posting that. That's exactly what I settled on as well, except that I used the ground on the other side of the board, but that shouldn't matter.