mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Allow to set LEDs using the KDBLEDS struct
This commit is contained in:
parent
4266a5c388
commit
9a51211a35
1 changed files with 6 additions and 1 deletions
7
BTHID.h
7
BTHID.h
|
@ -73,11 +73,16 @@ public:
|
||||||
protocolMode = mode;
|
protocolMode = mode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**@{*/
|
||||||
/**
|
/**
|
||||||
* Used to set the leds on a keyboard.
|
* Used to set the leds on a keyboard.
|
||||||
* @param data See KBDLEDS in hidboot.h
|
* @param data See ::KBDLEDS in hidboot.h
|
||||||
*/
|
*/
|
||||||
|
void setLeds(struct KBDLEDS data) {
|
||||||
|
setLeds(*((uint8_t*)&data));
|
||||||
|
};
|
||||||
void setLeds(uint8_t data);
|
void setLeds(uint8_t data);
|
||||||
|
/**@}*/
|
||||||
|
|
||||||
/** True if a device is connected */
|
/** True if a device is connected */
|
||||||
bool connected;
|
bool connected;
|
||||||
|
|
Loading…
Reference in a new issue