AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
nrf52840/include/ble_keyboard_adapter.h
Go to the documentation of this file.
1#pragma once
2#include "i_ble_keyboard.h"
3#include <bluefruit.h>
4
13{
14public:
18 void begin() override;
19
24 bool isConnected() override;
25
30 void write(uint8_t key) override;
31
36 void write(const MediaKeyReport key) override;
37
42 void print(const char* text) override;
43
44private:
45 BLEHidAdafruit hid;
46};
47
Adapter that implements IBleKeyboard interface using BleKeyboard.
void print(const char *text) override
Sends a text string.
void begin() override
Initializes the BLE stack and HID keyboard service.
void write(uint8_t key) override
Sends a single key press.
void write(const MediaKeyReport key) override
Sends a media key report.
bool isConnected() override
Checks if a central device is connected.
Interface for Bluetooth LE keyboard functionality.
uint8_t[2] MediaKeyReport
Type alias for media key reports.
BleKeyboardAdapter * createBleKeyboardAdapter()
Creates the platform-specific BleKeyboardAdapter instance.