mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-15 22:37:35 +00:00
add PCF8574(A) port expander as passive 4x4 keyboard
This commit is contained in:
16
src/input/peMatrixImpl.cpp
Normal file
16
src/input/peMatrixImpl.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "peMatrixImpl.h"
|
||||
#include "InputBroker.h"
|
||||
|
||||
PeMatrixImpl *peMatrixImpl;
|
||||
|
||||
PeMatrixImpl::PeMatrixImpl() : PeMatrixBase("matrixPE") {}
|
||||
|
||||
void PeMatrixImpl::init()
|
||||
{
|
||||
if (kb_model != 0x12) {
|
||||
disable();
|
||||
return;
|
||||
}
|
||||
|
||||
inputBroker->registerSource(this);
|
||||
}
|
||||
Reference in New Issue
Block a user