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.
How to Enable CC3000 DEBUGPRINT_F
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- amahpour
- Posts: 108
- Joined: Mon Feb 03, 2014 4:16 pm
Re: How to Enable CC3000 DEBUGPRINT_F
Finally figured it out.
In debug.h:
Change this:
To this:
I don't know how I missed that one.
In debug.h:
Change this:
Code: Select all
#define DEBUG_MODE (0)
Code: Select all
#define DEBUG_MODE (1)
Please be positive and constructive with your questions and comments.