Skip to content

This library monitors your code and prints actions to the Serial Monitor

License

Notifications You must be signed in to change notification settings

arduino279/Serial-Monitor

Repository files navigation

Serial Monitor

Get Started

Import

  1. Look up Serial_Monitor in the Library Manager and install the latest version
  2. Insert the following snippet
#include <Serial-Monitor.h>

Setup

#define DEBUG <boolean>

Description Enable or disable SerialMonitor


SerialMonitor serial;

Description Create a new SerialMonitor Object

Parameters

  • serial Name of the class without spaces

Serial.begin(9600);

Description Setup the serial monitor

Use

serial.initialize();

Description Initialize a new serial object

Parameters

  • serial Name of a declared class

Returns a Boolean


if(serial.initialize() == true) {
  // Your code goes here
}

Description Run the code after successful initialization

Parameters

  • serial Name of a declared class