IoAbstraction
Public Member Functions | Friends | List of all members
MatrixKeyboardManager Class Reference

#include <KeyboardManager.h>

Inheritance diagram for MatrixKeyboardManager:

Public Member Functions

void initialise (IoAbstractionRef ref, KeyboardLayout *layout, KeyboardListener *listener, bool interruptMode=false)
 
void setRepeatKeyMillis (int startAfterMillis, int repeatMillis)
 
uint32_t timeOfNextCheck () override
 
void exec () override
 

Friends

void rawKeyboardInterrupt ()
 

Detailed Description

A keyboard manager that can determine if a key is pressed or released for a given layout of keyboard. It is configured during initialisation with an IoAbstraction that is used to access hardware, a specific keyboard layout and a listener that will be called back when keys are pressed and released. The keyboard layout also sets what character is associated with each key.

You can decide between polling operation and interrupt operation, if interrupt operation is chosen then all the row pins must be on interrupt capable pins, which on many boards is best achieved by using an MCP23017 for all the pins. Do not enable interrupt mode on a PCF8574 as the changing of the output pins will trigger the interrupt.


The documentation for this class was generated from the following files: