mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 01:42:15 +00:00

* Break i2cScan out into a set of classes for scanning i2c * refactor i2cscan addresses to be structs that allow addressing by port + address * build whoopsies * trunk fmt * trunk fmt * lost some build fixes from the merge * more cleaning for build safety, RTC behavior
17 lines
300 B
C++
17 lines
300 B
C++
#include "cardKbI2cImpl.h"
|
|
#include "InputBroker.h"
|
|
|
|
CardKbI2cImpl *cardKbI2cImpl;
|
|
|
|
CardKbI2cImpl::CardKbI2cImpl() : KbI2cBase("cardKB") {}
|
|
|
|
void CardKbI2cImpl::init()
|
|
{
|
|
if (cardkb_found.address != CARDKB_ADDR) {
|
|
disable();
|
|
return;
|
|
}
|
|
|
|
inputBroker->registerSource(this);
|
|
}
|