mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-29 06:00:33 +00:00
Add CardKB, FACES and RAK14004 support to inputbroker/cannedmessages
This commit is contained in:
25
src/input/facesKbI2cImpl.cpp
Normal file
25
src/input/facesKbI2cImpl.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "facesKbI2cImpl.h"
|
||||
#include "InputBroker.h"
|
||||
|
||||
FacesKbI2cImpl *facesKbI2cImpl;
|
||||
|
||||
FacesKbI2cImpl::FacesKbI2cImpl() :
|
||||
KbI2cBase("facesKB")
|
||||
{
|
||||
}
|
||||
|
||||
void FacesKbI2cImpl::init()
|
||||
{
|
||||
if (faceskb_found != FACESKB_ADDR)
|
||||
{
|
||||
// Input device is not detected.
|
||||
return;
|
||||
}
|
||||
|
||||
inputBroker->registerSource(this);
|
||||
}
|
||||
|
||||
void FacesKbI2cImpl::handlePressed()
|
||||
{
|
||||
facesKbI2cImpl->PressHandler();
|
||||
}
|
||||
Reference in New Issue
Block a user