Add RN42 Bluetooth module support
Added support for sending HID keycodes over the RN42/reflashed HC05 module. Tested on OS X and iOS.
This commit is contained in:
parent
ccbdf90f02
commit
eedb767279
4 changed files with 43 additions and 2 deletions
|
@ -62,4 +62,18 @@ void bluefruit_serial_send(uint8_t data);
|
|||
(usage == AC_REFRESH ? 0x0000 : \
|
||||
(usage == AC_BOOKMARKS ? 0x0000 : 0)))))))))))))))))))
|
||||
|
||||
#endif
|
||||
#define CONSUMER2RN42(usage) \
|
||||
(usage == AUDIO_MUTE ? 0x0040 : \
|
||||
(usage == AUDIO_VOL_UP ? 0x0010 : \
|
||||
(usage == AUDIO_VOL_DOWN ? 0x0020 : \
|
||||
(usage == TRANSPORT_NEXT_TRACK ? 0x0100 : \
|
||||
(usage == TRANSPORT_PREV_TRACK ? 0x0200 : \
|
||||
(usage == TRANSPORT_STOP ? 0x0400 : \
|
||||
(usage == TRANSPORT_STOP_EJECT ? 0x0800 : \
|
||||
(usage == TRANSPORT_PLAY_PAUSE ? 0x0080 : \
|
||||
(usage == AL_EMAIL ? 0x0200 : \
|
||||
(usage == AL_LOCAL_BROWSER ? 0x8000 : \
|
||||
(usage == AC_SEARCH ? 0x0400 : \
|
||||
(usage == AC_HOME ? 0x0100 : 0))))))))))))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue