Menu

How to initialize the library

Vanyamba Software

In order to use Simple Dumping Monitor library for dumps output from the sketch, dumpmonSetup() function should be called from sketch's setup() function:

#include <dumpmon.h>        // Include DumpMon library to the sketch.

void setup() {
    dumpmonSetup(19200);    // DumpMon library intialization.
}

By default the library is using Serial (DEV_USART0) port for communication. In order to use any other serial port of ATmega1280/2560 microcontrollers (either Serial1, Serial2 or Serial3), the link to given port should be added to the dumpmonSetup() function call:

dumpmonSetup(&Serial2, 19200);     // DumpMon library initialization
                                   // to communicate via Serial2 port.

[Sketch's loop() function]


Related

Wiki: Commands to display dumps
Wiki: Home
Wiki: Sketch's loop() function

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.