SerialDebugger Library for Arduino Author: Alexander Brevig Contact: alexanderbrevig@gmail.com
1.2 2009-04-15: No longer needed to modify Arduino core.
1.2 2009-04-15: No longer needed to modify Arduino core.
1.2 2009-04-15: Tested And Functional
1.2 2009-04-13: Beta
1.1 2009-04-12: Beta
1.0 2009-04-12: Beta
SerialDebugger is a library for the Arduino.
It is created to help debugging using serial output.
This class uses the CascadablePrint Library.
Download here: Attach:SerialDebugger.zip
Put the SerialDebugger folder in "hardware\libraries\".
In the Arduino IDE, create a new sketch (or open one) and
select from the menubar "Sketch->Import Library->SerialDebugger".
Once the library is imported, an '#include <SerialDebugger.h>' line will appear
at the top of your Sketch.
The SerialDebugger is an instance of the SerialDebug library. So it is already created.
You only need to worry about configuring it to suit your needs.
Available Constructors
//this initializes a SerialDebug object named debugger connected to the Arduino Serial object. SerialDebug debugger = SerialDebug(9600);
Wrapper for Serial.begin. Calling this will add 332 bytes to your sketch binary.
Wrapper for Arduino Mega multiple Serial objects.
How can I use multiple SerialDebuggeres?
SerialDebugger is not a class. Therefore to add an additional SerialDebugger you will need to create a new object.
One could add a SerialDebugger called mySerialDebugger with uart 3, baudrate=9600 , and a default accept for ERRORs for Arduino Mega with the following line:
SerialDebugg mySerialDebugger = SerialDebug(3,9600,ERROR);
SerialDebugger.debug(NOTIFICATION,"example","SerialDebugger says hello!"); mySerialDebugger.debug(ERROR,"example","mySerialDebugger says hello!");
Part of AlphaBeta Libraries. | |
Last Modified: | May 09, 2009, at 05:13 AM |
By: | AlphaBeta |