2 Bluefruit Protocol for TMK firmware
3 Author: Benjamin Gould, 2013
5 Based on code Copyright 2011 Jun Wako <wakojun@gmail.com>
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include "bluetooth.h"
24 void bluefruit_keyboard_print_report(report_keyboard_t *report)
26 if (!debug_keyboard) return;
27 dprintf("keys: "); for (int i = 0; i < KEYBOARD_REPORT_KEYS; i++) { debug_hex8(report->keys[i]); dprintf(" "); }
28 dprintf(" mods: "); debug_hex8(report->mods);
29 dprintf(" reserved: "); debug_hex8(report->reserved);
33 void bluefruit_serial_send(uint8_t data)