Add setBattery to BLE HID devices (#1246)

This commit was merged in pull request #1246.
This commit is contained in:
Earle F. Philhower, III
2023-03-02 15:55:18 -08:00
committed by GitHub
parent 719ab019a4
commit 305e194993
13 changed files with 30 additions and 3 deletions
@@ -45,6 +45,10 @@ void KeyboardBLE_::end(void) {
PicoBluetoothBLEHID.end();
}
void KeyboardBLE_::setBattery(int lvl) {
PicoBluetoothBLEHID.setBattery(lvl);
}
void KeyboardBLE_::sendReport(KeyReport* keys) {
hid_keyboard_report_t data;
data.modifier = keys->modifiers;