How to Enable CC3000 DEBUGPRINT_F

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
amahpour
 
Posts: 108
Joined: Mon Feb 03, 2014 4:16 pm

How to Enable CC3000 DEBUGPRINT_F

Post by amahpour »

Hi. How do I enable the debug level printing?

I managed to reroute CC3KPrinter->println to my SerialUSB on the SAM3X by using this method:
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIVIDER, &SerialUSB);

Is there something at the top level that I can do to define the debug level?

I saw some other forum saying to do this but it didn't work:
#define DEBUGPRINT_F(x) Serial.println(x)

Please advise.

User avatar
amahpour
 
Posts: 108
Joined: Mon Feb 03, 2014 4:16 pm

Re: How to Enable CC3000 DEBUGPRINT_F

Post by amahpour »

Finally figured it out.

In debug.h:
Change this:

Code: Select all

#define DEBUG_MODE                      (0)
To this:

Code: Select all

#define DEBUG_MODE                      (1)
I don't know how I missed that one.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”