Skip to content

[Option] Use serial input parser for getting commands #22

@martin-eden

Description

@martin-eden

Hello Ricardo,

I see you're using switch(Serial.read()). I wrote standalone library to register handlers as commands. me_Menu.

When handler is executed it can read Serial on their own if it needs additional data. For example here me_RgbStripeConsole reads pixel's color from stream.

This approach allows you to have multi-character commands. Plus default implementation supplies ? command to print list of available commands.

-- Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions