DEBUG statement - SOLVED

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
terranjerry
 
Posts: 38
Joined: Tue Feb 11, 2014 1:39 pm

DEBUG statement - SOLVED

Post by terranjerry »

Sorry - I should have done a bit more looking first.

I found that the DEBUG output is controlled by a file called "ratt.h"
By default (in the project I was working upon) it was off.

To ENABLE debugging you have to go into that file and change this line:
#define DEBUGGING 0
to look like this:
#define DEBUGGING 1

I am leaving this posted here in the hopes that it is beneficial to someone else trying to get the serial port output debugging working.
Kind regards,
Jerry
---------------------------------------------------------------------------
Original post:

I am working with my Monochron clock and a new program.
I have seen this code in other software for the Monochron...

DEBUG(putstring("screen width: "));
DEBUG(uart_putw_dec(GLCD_XPIXELS));

Can you please tell me what the "DEBUG" statement is doing?
Also, I have started Putty and have it configured for 57600-8-n-1 and the com port to which my FTDI friend is connected but while I can see the red light flash when I type in Putty, I don't see the green LED flash on the Friend when I start my program and I guess I was assuming the code above would send that information out the serial port.

I'm not sure if this is a serial port config problem or something in my code.

Any help is most appreciated! Thanks - Jerry

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

Return to “Clock Kits (discontinued)”