-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started
IoliteCoding edited this page Jul 22, 2024
·
3 revisions
In this example there are 4 commands with various purposes.
Add this to use the library:
#include <SerialCommands.h>Creating an instance of the class is not nessesary, Cmd can be used out of the box.
Cmd uses Serial as underlying stream as default. Cmd.begin(*baudrate*) will begin the underlying stream.
void Setup()
{
Cmd.begin(115200);
}Changing the stream:
void Setup()
{
Cmd.init(&Serial1);
Cmd.begin(115200);
}