#include <BTHID.h>
This BluetoothService class implements support for the HID keyboard and mice.
Definition at line 29 of file BTHID.h.
BTHID::BTHID |
( |
BTD * |
p, |
|
|
bool |
pair = false , |
|
|
const char * |
pin = "0000" |
|
) |
| |
Constructor for the BTHID class.
- Parameters
-
p | Pointer to the BTD class instance. |
pair | Set this to true in order to pair with the device. If the argument is omitted then it will not pair with it. One can use PAIR to set it to true. |
pin | Write the pin to BTD::btdPin. If argument is omitted, then "0000" will be used. |
Definition at line 23 of file BTHID.cpp.
void BTHID::ACLData |
( |
uint8_t * |
ACLData | ) |
|
|
virtual |
void BTHID::disconnect |
( |
| ) |
|
|
virtual |
void BTHID::setProtocolMode |
( |
uint8_t |
mode | ) |
|
|
inline |
Set HID protocol mode.
- Parameters
-
mode | HID protocol to use. Either HID_BOOT_PROTOCOL or HID_RPT_PROTOCOL. |
Definition at line 82 of file BTHID.h.
void BTHID::setLeds |
( |
uint8_t |
data | ) |
|
Used to set the leds on a keyboard.
- Parameters
-
Definition at line 396 of file BTHID.cpp.
void BTHID::pair |
( |
void |
| ) |
|
|
inline |
Call this to start the paring sequence with a device
Definition at line 96 of file BTHID.h.
void BTHID::attachOnInit |
( |
void(*)(void) |
funcOnInit | ) |
|
|
inline |
Used to call your own function when the device is successfully initialized.
- Parameters
-
funcOnInit | Function to call. |
Definition at line 105 of file BTHID.h.
True if a device is connected
Definition at line 93 of file BTHID.h.
The documentation for this class was generated from the following files: