mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-24 03:31:14 +00:00
29 lines
600 B
C++
29 lines
600 B
C++
#pragma once
|
|
|
|
#include "BBQ10Keyboard.h"
|
|
#include "InputBroker.h"
|
|
#include "MPR121Keyboard.h"
|
|
#include "Wire.h"
|
|
#include "concurrency/OSThread.h"
|
|
|
|
class TCA8418KeyboardBase;
|
|
|
|
class KbI2cBase : public Observable<const InputEvent *>, public concurrency::OSThread
|
|
{
|
|
public:
|
|
explicit KbI2cBase(const char *name);
|
|
void toggleBacklight(bool on);
|
|
|
|
protected:
|
|
virtual int32_t runOnce() override;
|
|
|
|
private:
|
|
const char *_originName;
|
|
|
|
TwoWire *i2cBus = 0;
|
|
|
|
BBQ10Keyboard Q10keyboard;
|
|
MPR121Keyboard MPRkeyboard;
|
|
TCA8418KeyboardBase &TCAKeyboard;
|
|
bool is_sym = false;
|
|
}; |