I'm using an AdaFruit CC3000 Wifi shield as an HTTP server with an Arduino Uno.
I have a script which works fine -- logs into my Wifi and listens for connections as it should.
However, I want to use an infrared library which writes to the CC33000 default IRQ 3, so to avoid conflict I change the following setting:
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin!
to the only other Interrupt pin
#define ADAFRUIT_CC3000_IRQ 2 // MUST be an interrupt pin!
The device hangs at "Initializing" .. or at least I see neither of the subsequent lines in the following code on my serial monitor:
Serial.println(F("\nInitializing..."));
if (!cc3000.begin())
{
Serial.println(F("Couldn't begin()! Check your wiring?"));
while(1);
}
Serial.print(F("\nAttempting to connect to ")); Serial.println(WLAN_SSID);
if (!cc3000.connectToAP(WLAN_SSID, WLAN_PASS, WLAN_SECURITY)) {
Serial.println(F("Failed!"));
while(1);
}
I've stripped everything back down to just the example code for HTTPServer to ensure it's not a conflict with my own code or the IR Library. I've changed the setting from 2 to 0 and 1 thinking there was some confusion over literal IRQs vs Pins, but those settings generate the "Couldn't begin" error trap.
Is there any other setting that I need to vary in order to get the CC3000 to opearate on IRQ 2 or is this a hardware bug and I'm out of luck if I want to use Pin 3?