diff options
| author | Travis La Marr <exiva@exiva.net> | 2017-03-29 23:03:04 -0400 |
|---|---|---|
| committer | Travis La Marr <exiva@exiva.net> | 2017-03-29 23:03:04 -0400 |
| commit | 71da013995ec72293ab1f3e2518a99d64ec486fb (patch) | |
| tree | 8016b4d3313acfe48e298ddfb246de7255c56b50 /tmk_core/protocol/lufa/bluetooth.h | |
| parent | 942f2ccee44bdb2e251553e9730cd8d59307d8b2 (diff) | |
| download | qmk_firmware-71da013995ec72293ab1f3e2518a99d64ec486fb.tar.gz qmk_firmware-71da013995ec72293ab1f3e2518a99d64ec486fb.zip | |
Add RN42 Bluetooth module support
Added support for sending HID keycodes over the RN42/reflashed HC05 module. Tested on OS X and iOS.
Diffstat (limited to 'tmk_core/protocol/lufa/bluetooth.h')
| -rw-r--r-- | tmk_core/protocol/lufa/bluetooth.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tmk_core/protocol/lufa/bluetooth.h b/tmk_core/protocol/lufa/bluetooth.h index 78ece1cd0..f4b2f6f8b 100644 --- a/tmk_core/protocol/lufa/bluetooth.h +++ b/tmk_core/protocol/lufa/bluetooth.h | |||
| @@ -62,4 +62,18 @@ void bluefruit_serial_send(uint8_t data); | |||
| 62 | (usage == AC_REFRESH ? 0x0000 : \ | 62 | (usage == AC_REFRESH ? 0x0000 : \ |
| 63 | (usage == AC_BOOKMARKS ? 0x0000 : 0))))))))))))))))))) | 63 | (usage == AC_BOOKMARKS ? 0x0000 : 0))))))))))))))))))) |
| 64 | 64 | ||
| 65 | #endif \ No newline at end of file | 65 | #define CONSUMER2RN42(usage) \ |
| 66 | (usage == AUDIO_MUTE ? 0x0040 : \ | ||
| 67 | (usage == AUDIO_VOL_UP ? 0x0010 : \ | ||
| 68 | (usage == AUDIO_VOL_DOWN ? 0x0020 : \ | ||
| 69 | (usage == TRANSPORT_NEXT_TRACK ? 0x0100 : \ | ||
| 70 | (usage == TRANSPORT_PREV_TRACK ? 0x0200 : \ | ||
| 71 | (usage == TRANSPORT_STOP ? 0x0400 : \ | ||
| 72 | (usage == TRANSPORT_STOP_EJECT ? 0x0800 : \ | ||
| 73 | (usage == TRANSPORT_PLAY_PAUSE ? 0x0080 : \ | ||
| 74 | (usage == AL_EMAIL ? 0x0200 : \ | ||
| 75 | (usage == AL_LOCAL_BROWSER ? 0x8000 : \ | ||
| 76 | (usage == AC_SEARCH ? 0x0400 : \ | ||
| 77 | (usage == AC_HOME ? 0x0100 : 0)))))))))))) | ||
| 78 | |||
| 79 | #endif | ||
