Files
hexapod-robot/2026-current/remote/SerialConsole.h
T

14 lines
535 B
C++
Raw Normal View History

#pragma once
#include "UiTypes.h"
// USB serial console (115200). Mirrors every touchscreen control with a
// single keystroke, so the remote can be bench-tested with no Nextion
// attached, plus a few diagnostics. Key map in remote/README.md.
class SerialConsole {
public:
enum class Local : uint8_t { None, PrintStatus, ToggleDump, ResetCal };
// Returns true with either `ui` set (a normal operator command) or
// `local` set (a console-only diagnostic the sketch handles itself).
bool poll(UiEvent& ui, Local& local);
};