Import
- Look up
Serial_Monitorin the Library Manager and install the latest version - Insert the following snippet
#include <Serial-Monitor.h>#define DEBUG <boolean>Description Enable or disable SerialMonitor
SerialMonitor serial;Description Create a new SerialMonitor Object
Parameters
serialName of the class without spaces
Serial.begin(9600);Description Setup the serial monitor
serial.initialize();Description Initialize a new serial object
Parameters
serialName of a declared class
Returns a Boolean
if(serial.initialize() == true) {
// Your code goes here
}Description Run the code after successful initialization
Parameters
serialName of a declared class