Commit graph

65 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
317120c749 Simply try to connect again if the connection attempt fails
This was an issue when connecting to the Wiimote

Fixes #169 and #319
2017-11-10 09:40:27 +01:00
Kristian Sloth Lauszus
242ce6c92b Fixed type in waitingForConnection variable and set it to false when pairing 2017-02-07 15:27:00 +01:00
Kristian Sloth Lauszus
eb3a258aa6 Remove execute permission from source files 2016-04-26 17:00:44 +02: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
a3fbffb42c Updated some comments 2015-04-16 02:34:27 +02:00
Kristian Sloth Lauszus
b1902b2a55 Initial support for Wii Balance Board
Still need to convert readings into something meaningful
2015-04-16 01:57:00 +02:00
Andrew J. Kroll
46dc4e6fec fix conflict, fix case on include for hid.h (regression?) 2015-03-14 04:54:28 -04: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
bd8c8e7404 Fix use of "bool" so ARM compiles correctly 2015-02-19 03:14:39 -05: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
285b21cdbc Check HCI Handle using function in BluetoothService class 2014-09-09 16:38:42 -07:00
Kristian Lauszus
106aff6411 Call registerBluetoothService in BluetoothService constructor
I needed to move the BluetoothService class down after the BTD class in order for it to work
2014-09-09 16:32:46 -07: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
efb9bb73c5 Use shift operators for flags 2014-09-02 01:34:39 -07:00
Kristian Lauszus
4a1940b99b Don't redefine HID parameters - just include Hid.h 2014-09-02 01:26:17 -07:00
Kristian Lauszus
0c05413447 Remote name buffer should be a char array 2014-01-16 18:56:42 +01:00
Kristian Lauszus
7469ff099e Typos, whitespace and some other cleanup stuff 2014-01-12 16:31:47 +01:00
Kristian Lauszus
e9bd896ca2 Added support for the PS4 controller via Bluetooth 2014-01-10 17:44:51 +01:00
Kristian Lauszus
8ae6f8bb1d Updated comments - especially in BTHID.h 2013-12-30 16:05:50 +01:00
Andrew J. Kroll
14fda1372c Fix annoying warnings and provide an optimization. 2013-12-29 23:53:24 -05:00
Andrew J. Kroll
f1af9b08ec Janitorial, whitespace fixes. No new code. 2013-12-25 05:09:57 -05:00
Kristian Lauszus
6ea34f955e Fixed flag macros
Needed if you want to clear multiple flags at once
2013-12-13 11:18:30 +01:00
Kristian Lauszus
184770489f Removed another unneeded case in the state machine 2013-12-13 10:41:12 +01:00
Kristian Lauszus
413e65a44f Reorder values 2013-12-13 10:36:15 +01:00
Kristian Lauszus
a7f6b2e4dc Removed unneeded case 2013-12-13 10:35:27 +01:00
Kristian Lauszus
6909ecd6b8 Use more readable macros in the BTD class as well 2013-12-11 10:37:18 +01:00
Kristian Lauszus
809e80a1b0 Clear and set flags in a more readable way 2013-12-11 09:59:58 +01: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
75637bab31 Merge branch 'master' into xxxajk 2013-12-05 07:26:41 +01:00
Andrew J. Kroll
95d133b919 Merge 2013-12-04 18:51:06 -05:00
Andrew J. Kroll
e18eb57752 fix all warnings for ARM, fix a few small bugs 2013-12-04 18:40:23 -05:00
Kristian Lauszus
c84dce8e00 Renamed clearAllVariables() to Initialize() 2013-12-01 16:02:23 +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
Kristian Lauszus
bcc51279d9 Added function, so one can connect to any Bluetooth device by setting the Bluetooth address as an argument 2013-11-24 15:31:12 +01:00
Kristian Lauszus
c58f93dd83 Check if Bluetooth address is set before returning true to a PS3 controller 2013-11-24 15:23:41 +01:00
Kristian Sloth Lauszus
90dba71937 Moved PID and VID readings 2013-10-07 01:45:21 +02:00
Kristian Sloth Lauszus
b76ddedd59 Implement ConfigureDevice() before Init()
Also added clearAllVariables() - see: https://github.com/felis/USB_Host_Shield_2.0/pull/63
2013-10-07 00:47:53 +02:00
Andrew J. Kroll
1a0d0690d3 compile faster 2013-09-23 18:40:10 -04:00
Kristian Sloth Lauszus
6e271b44aa Fixed PID 2013-08-14 00:57:11 +02:00
Kristian Sloth Lauszus
64cdcf51f4 Check for IOGEAR GBU521 manually 2013-08-14 00:43:15 +02:00
Kristian Sloth Lauszus
dcdc1b26f7 Reduced buffer sizes 2013-07-19 12:49:13 +02:00
Kristian Sloth Lauszus
1a1c2a18d3 Added DEVCLASSOK and VIDPIDOK to some drivers 2013-07-15 18:20:58 +02:00
Oleg Mazurov
261e5f1bd2 commit 2013-06-11 21:11:43 -06:00
Andrew J. Kroll
904f2ff25a Clean up code formatting to industry standards. 2013-03-28 04:46:43 -04:00
Kristian Sloth Lauszus
49ade831a7 Write class of device
This is needed in order for some devices to see the dongle
2013-03-14 23:40:52 +01:00
Kristian Sloth Lauszus
00a9a33ab8 Added pairWithWiimote function 2013-02-23 18:52:55 +01:00
Kristian Sloth Lauszus
797208832f Added readPollInterval function 2013-02-17 01:24:10 +01:00
Kristian Sloth Lauszus
a02dc1f7ad Fixed whitespace 2013-02-05 20:09:05 +01:00
Kristian Sloth Lauszus
1333e9a63b Updated comments to work with Doxygen 2013-02-05 19:51:45 +01:00