An extensible command shell for Arduino.
refer from the rt-thread's finsh> and nr_micro_shell!
#include <X_Shell.h>
void setup(void)
{
Serial.beigin(115200);
xShell.init(Serial);
}
void loop(void)
{
xShell.run();
}
xShell.addCommand(const char *name, ShellFunctionT functionPoint);
/* The user's name. */
#define X_SHELL_USER_NAME "VThink > "
/* [0: \n]/Unix [1: \r]/MacOS [2: \r\n]/Windows */
#define X_SHELL_END_OF_LINE 1
/* Show logo or not. */
#define X_SHELL_SHOW_LOGO 1
/* Open or close the ECHO */
#define X_SHELL_ECHO_ENABLE 1