mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-30 14:40:40 +00:00
* TCA8418 with base config for 3x4 keypad * replaced k with uppercase K * change detection method * reflect changes #6381 --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
27 lines
561 B
C++
27 lines
561 B
C++
#pragma once
|
|
|
|
#include "BBQ10Keyboard.h"
|
|
#include "InputBroker.h"
|
|
#include "MPR121Keyboard.h"
|
|
#include "TCA8418Keyboard.h"
|
|
#include "Wire.h"
|
|
#include "concurrency/OSThread.h"
|
|
|
|
class KbI2cBase : public Observable<const InputEvent *>, public concurrency::OSThread
|
|
{
|
|
public:
|
|
explicit KbI2cBase(const char *name);
|
|
|
|
protected:
|
|
virtual int32_t runOnce() override;
|
|
|
|
private:
|
|
const char *_originName;
|
|
|
|
TwoWire *i2cBus = 0;
|
|
|
|
BBQ10Keyboard Q10keyboard;
|
|
MPR121Keyboard MPRkeyboard;
|
|
TCA8418Keyboard TCAKeyboard;
|
|
bool is_sym = false;
|
|
}; |