aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/lilypad/src
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2015-07-02 12:12:15 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-07-16 13:13:52 +0200
commit3d61f6e37ef3084627cdeb2b81e1545fe7ef0271 (patch)
tree43aff6c389d61efe48e4104d9e6890d06b766024 /bootloaders/lilypad/src
parentb0bdb476942ea105463fd8fdbc076d2b104a7176 (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 'bootloaders/lilypad/src')
0 files changed, 0 insertions, 0 deletions