Import
- Look up
Serial_Monitor
in 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
serial
Name of the class without spaces
Serial.begin(9600);
Description Setup the serial monitor
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