mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 18:31:37 +00:00
22 lines
358 B
C++
22 lines
358 B
C++
#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);
|
|
}
|