diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2015-07-02 12:12:15 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-07-16 13:13:52 +0200 |
commit | 3d61f6e37ef3084627cdeb2b81e1545fe7ef0271 (patch) | |
tree | 43aff6c389d61efe48e4104d9e6890d06b766024 /firmwares/wifishield/wifiHD/src/SOFTWARE_FRAMEWORK/BOARDS/EVK1105/led.h | |
parent | b0bdb476942ea105463fd8fdbc076d2b104a7176 (diff) |
allow HID submodules to create runtime descriptors
with this PR you can add
\#include Keyboard.h
\#include Mouse.h
\#include HID.h
in the top of the sketch and you will expose a Mouse+Keyboard
From the library pow, simply add
static HID_Descriptor cb = {
.length = sizeof(_hidReportDescriptor),
.descriptor = _hidReportDescriptor,
};
static HIDDescriptorListNode node(&cb);
HID.AppendDescriptor(&node);
in the class' constructor and you are done!
Diffstat (limited to 'firmwares/wifishield/wifiHD/src/SOFTWARE_FRAMEWORK/BOARDS/EVK1105/led.h')
0 files changed, 0 insertions, 0 deletions