30 m_printer.dataAvailable.connect(m_onSecondCharSlot);
34void ArrowControl::onSecondChar(
char c)
36 m_printer.dataAvailable.disconnect(m_onSecondCharSlot);
44 m_printer.dataAvailable.connect(m_onThirdCharSlot);
48void ArrowControl::onThirdChar(
char c)
50 m_printer.dataAvailable.disconnect(m_onThirdCharSlot);
51 if (c !=
'A' && c !=
'B')
59 m_printer.dataWritten.connect(m_onCleared);
60 m_printer.
print(
"\b \b", m_echo ? m_count : m_count + 4);
63void ArrowControl::onCleared()
65 m_printer.dataWritten.disconnect(m_onCleared);
Class for representing errors. Every error should have a unique source code. As a user feel encourage...
void start()
Starts the reading process.
ArrowControl(Printer &printer, const int &count, bool echo)
Constructor.
@ OnSecondChar_UnexpectedChar
@ OnThirdChar_UnexpectedChar
Class for string related UART communication. Using this class outside of an esh-context can make sens...
void print(char character, size_t count)
Prints a single character count times.
void readCharacter()
Triggers a read cyle for reading a single character.