Commit graph

28 commits

Author SHA1 Message Date
Kristian Sloth Lauszus b4bbfecd09 Store the timestamp of the last Bluetooth DATA input report received on the interrupt channel
This can be used detect if the connection to a Bluetooth device is lost fx if the battery runs out or it gets out of range
2021-01-26 23:43:59 +01:00
Kristian Sloth Lauszus 23ba34da47
Merge pull request #517 from fraca7/control-report-callback
Add a ParseBTHIDControlData virtual method similar to ParseBTHIDData,
2020-11-16 12:58:29 +01:00
Kristian Sloth Lauszus 7714e807f6 Added SDP support to the BTHID, as needed for the Xbox One S controller 2020-11-15 19:13:54 +01:00
Jérôme Laheurte f075ea3025 Add a ParseBTHIDControlData virtual method similar to ParseBTHIDData,
for reports that are sent through the control pipe. This happens for
instance in response to a GET_REPORT.
2020-02-28 18:03:16 +01:00
Andrew J. Kroll f948ffccba clean up annoying bogus warnings 2017-12-01 10:43:31 -05:00
Kristian Sloth Lauszus 00658d60eb Fixed typo 2016-04-19 11:48:51 +02:00
Pavel Fatin 969eabb8d7 Compatibility with Arduino's core HID / Mouse / Keyboard libraries
The following collisions resolved:

hid.h -> usbhid.h
hid.cpp -> usbhid.cpp
HID -> USBHID
HID_BOOT_PROTOCOL -> USB_HID_BOOT_PROTOCOL
HID_PROTOCOL_NONE -> USB_HID_PROTOCOL_NONE
HID_PROTOCOL_KEYBOARD -> USB_HID_PROTOCOL_KEYBOARD
HID_PROTOCOL_MOUSE -> USB_HID_PROTOCOL_MOUSE

As a result, it's possible to use the library together with Arduino's bundled HID / Mouse / Keyboard libraries (Leonardo, Micro, or Due).

https://www.arduino.cc/en/Reference/MouseKeyboard
2016-01-16 20:34:16 +01:00
Kristian Sloth Lauszus 9a51211a35 Allow to set LEDs using the KDBLEDS struct 2015-11-18 00:23:21 +01:00
Kristian Sloth Lauszus 881c4df046 Merge branch 'master' into dev
Conflicts:
	BTD.h
	BTHID.h
	PS3BT.h
	SPP.h
	Wii.h
2015-02-24 01:28:28 +01:00
Andrew J. Kroll 196a0b69be Fix all demos, fix all wrong uses of virtual keyword, some spacing cleanup. 2014-11-10 01:35:13 -05:00
Kristian Lauszus 25c8d87ba2 Added several variables to BluetoothService class
Also moved attachOnInit function into BluetoothService class, but this really belong somewhere else
2014-09-02 02:02:17 -07:00
Kristian Lauszus 7806212132 Removed some unnecessary functions and some other cleanup 2014-02-03 23:06:27 +01:00
Kristian Lauszus 2a1db31cf1 Can now read the IMU and touchpad values of the PS4 controller via Bluetooth as well
Thanks to Frank Zhao - see: http://eleccelerator.com/wiki/index.php?title=DualShock_4#0x11
2014-01-22 05:13:49 +01:00
Kristian Lauszus e781d6c554 Updated some comments and some other minor things 2014-01-19 16:58:29 +01:00
Kristian Lauszus da2ee95445 Added support for the PS4 controller via USB
Also improved the PS4BT library
2014-01-18 22:36:01 +01:00
Kristian Lauszus eea5c44b96 Now onInit() works with the PS4 library as well 2014-01-12 17:20:18 +01:00
Kristian Lauszus 2283753ba1 Check id values when GetReportParser and SetReportParser are called 2013-12-30 16:08:03 +01:00
Kristian Lauszus 8ae6f8bb1d Updated comments - especially in BTHID.h 2013-12-30 16:05:50 +01:00
Andrew J. Kroll f1af9b08ec Janitorial, whitespace fixes. No new code. 2013-12-25 05:09:57 -05:00
Kristian Lauszus ed36d04e7c Move all L2CAP states etc. into BTD.h, so the different drivers does not conflict when used together 2013-12-11 09:29:38 +01:00
Kristian Lauszus b100677354 Fixed bug - epMUL was already defined 2013-12-05 07:39:28 +01:00
Kristian Lauszus 6004d61de2 Removed some unused code and cleanup 2013-11-27 00:07:58 +01:00
Kristian Lauszus bcc4afede5 Set protocol shouldn’t have it’s own state, as it will then sometimes not call the other states afterwards 2013-11-25 19:01:20 +01:00
Kristian Lauszus eed70438be Set default pin to “0000” 2013-11-25 02:20:57 +01:00
Kristian Lauszus 253b43c06f Set protocol before establishing interrupt channel 2013-11-25 02:15:33 +01:00
Kristian Lauszus 4099314100 Can now set the LEDs on a keyboard 2013-11-25 01:45:24 +01:00
Kristian Lauszus aba004b047 Use the HIDBoot class to parse the incoming data 2013-11-24 23:51:45 +01:00
Kristian Lauszus f783b97cb9 Initial commit for BTHID library
To see incoming data uncomment PRINTREPORT in BTHID.cpp
2013-11-24 21:55:15 +01:00