Add CardKB, FACES and RAK14004 support to inputbroker/cannedmessages

This commit is contained in:
Thomas Göttgens
2022-03-28 16:55:58 +02:00
parent a48cc202a7
commit f119e294af
11 changed files with 193 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
#include "cardKbI2cImpl.h"
#include "InputBroker.h"
CardKbI2cImpl *cardKbI2cImpl;
CardKbI2cImpl::CardKbI2cImpl() :
KbI2cBase("cardKB")
{
}
void CardKbI2cImpl::init()
{
if (cardkb_found != CARDKB_ADDR)
{
// Input device is not detected.
return;
}
DEBUG_MSG("registerSource\n");
inputBroker->registerSource(this);
}
void CardKbI2cImpl::handlePressed()
{
DEBUG_MSG("handlePressed\n");
cardKbI2cImpl->PressHandler();
}