mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 02:32:23 +00:00
Add CardKB, FACES and RAK14004 support to inputbroker/cannedmessages
This commit is contained in:
27
src/input/cardKbI2cImpl.cpp
Normal file
27
src/input/cardKbI2cImpl.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user