Reverse Echo
The micro:bit should buffer characters it receives until \n
or \r
is received
(the enter key is pressed on the host computer).
The characters should then be printed back in reverse order to the host computer.
The characters may also be echoed like earlier to see what is being typed.
Flow
- Letter
a
is typed and transmitted to the micro:bit - (optional) The micro:bit retransmits the letter
a
(echo) - Letter
b
is typed and transmitted to the micro:bit - (optional) The micro:bit retransmits the letter
b
(echo) - Enter key is pressed and
\r
is transmitted to the micro:bit - Letters
ba
are transmitted from the micro:bit