5#include <BleKeyboard.h>
33 void begin()
override { kb.begin(); }
47 void write(uint8_t key)
override { kb.write(key); }
61 void print(
const char* text)
override { kb.print(text); }
Adapter that implements IBleKeyboard interface using BleKeyboard.
void print(const char *text) override
Sends a text string.
void begin() override
Initializes the BLE keyboard.
void write(uint8_t key) override
Sends a single key press.
BleKeyboardAdapter(BleKeyboard &kb)
Constructs a BleKeyboardAdapter.
void write(const MediaKeyReport key) override
Sends a media key report.
bool isConnected() override
Checks if BLE keyboard is connected.
Interface for Bluetooth LE keyboard functionality.
BleKeyboardAdapter * createBleKeyboardAdapter()
Creates the platform-specific BleKeyboardAdapter instance.
uint8_t[2] MediaKeyReport
Type alias for media key reports.