Arduino Hardware Serial Terminal
Arduino Hardware Serial Terminal (low level), sending complete sequence to function for processing it (mainly for user input)
- Declare a function of type
void (*func)(String)for message processing - Initialize terminal with
term.init(uint32_t speed, void (*processing)(String)=NULL, String * title=NULL, String * ver=NULL, int msg_size=64)speed: terminal baud rateprocessing: pointer to message processing functiontitle: pointer to terminal title Stringver: pointer to version Stringmsg_size: maximum serial input size
- messages will be passed to
funcfor processing when breakout char (default being ';') occurs or max size is reached - Other methods:
term.setBreakoutChar(): change breakout characterterm.getBreakoutChar(): get actual breakout character
- ParrotTerminal.ino: Writes back terminal entries to terminal
- SetLEDTerm.ino: Set onboard LED state through serial terminal