Files
firmware/src/input/cardKbI2cImpl.cpp

24 lines
360 B
C++
Raw Normal View History

#include "cardKbI2cImpl.h"
#include "InputBroker.h"
2022-11-13 11:58:02 +01:00
#if HAS_WIRE
CardKbI2cImpl *cardKbI2cImpl;
CardKbI2cImpl::CardKbI2cImpl() :
KbI2cBase("cardKB")
{
}
void CardKbI2cImpl::init()
{
if (i2cScanMap[CARDKB_ADDR].addr != CARDKB_ADDR)
{
// Input device is not detected.
return;
}
inputBroker->registerSource(this);
}
2022-11-13 11:58:02 +01:00
#endif