bremme/arduino-tm1637

How to disable logging with Serial?

stpoa opened this issue · 4 comments

stpoa commented

Hi,

I need serial output to send specific data, how to disable logging when you are displaying something on a screen?

Hi @stpoa the library should not output any serial data, unless you have set:

// COMPILE TIME USER CONFIG ////////////////////////////////////////////////////
#define TM1637_DEBUG false // true for serial debugging

To true in the SevenSegmentTM1637.h header file. I did a quick search for the Serial.println() command and found that there is one method in the extended class (printDualCounter) where I left two instance by mistake. I will fix this asap. Are you using that method, or if not, when and what is printed over serial?

stpoa commented

Thank You for reply, I was using print() method with 4 digit display, passing int as an argument. I cannot check the output at the moment. I will look at it tomorow if it helps.

I'm not sure if I understand you properly. Are you using the printDualCounter() method or are you using Serial.println() yourself somewhere in your code. And what do you mean by: 'I cannot check the output at the moment'. Do you mean you get no text on for example the Arduino IDE serial monitor when you are using Serial.println()? In the latter case I don't think it has anything to do with the SevenSegmentTM1637 library.

Have you been able to solve your problem? I will close this issue for now.