mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 19:20:41 +00:00
* support BB Q10 keyboard * remove debug code * fix wrong logic * fix left/right keys for cardkb * Try to enable Q10 kb after all * cppcheck * Only fire on Key release and assume 0x0a is a enter as well --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
23 lines
415 B
C++
23 lines
415 B
C++
#pragma once
|
|
|
|
#include "BBQ10Keyboard.h"
|
|
#include "InputBroker.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;
|
|
};
|