|
M5Unit-KEYBOARD 0.0.1 git rev:a483db1
|
Base class of the Keyboard Unit. More...
#include <unit_Keyboard.hpp>
Public Member Functions | |
| UnitKeyboard (const uint8_t addr=DEFAULT_ADDRESS) | |
| virtual bool | begin () override |
| virtual void | update (const bool force=false) override |
| virtual char | getchar () const |
| Gets the input character. | |
| virtual uint8_t | released () const |
| Gets the released key character code if updated. | |
Base class of the Keyboard Unit.
|
overridevirtual |
Reimplemented in m5::unit::UnitCardKB2, m5::unit::UnitCardKB2UART, m5::unit::UnitCardKB, and m5::unit::UnitFacesQWERTY.
|
inlinevirtual |
Gets the input character.
| != | 0 Character |
| == | 0 Not input or invalid character |
Reimplemented in m5::unit::UnitCardKB2, and m5::unit::UnitKeyboardBitwise.
|
inlinevirtual |
Gets the released key character code if updated.
| != | 0 Released character code |
| == | 0 There is no released key |
Reimplemented in m5::unit::UnitFacesQWERTY, and m5::unit::UnitKeyboardBitwise.
|
overridevirtual |
Reimplemented in m5::unit::UnitCardKB2, m5::unit::UnitCardKB2UART, m5::unit::UnitCardKB, m5::unit::UnitFacesQWERTY, and m5::unit::UnitKeyboardBitwise.