1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-11 22:24:13 +01:00
Arduino/hardware/arduino/avr
Martino Facchin e1a0350062 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!
2015-07-16 13:13:52 +02:00
..
bootloaders Bootloaders: wrong #ifdefs, should be defined() not just tested (i.e. noteq 0) 2015-07-14 16:16:31 +02:00
cores/arduino fix pluggableUSB linked list 2015-07-16 13:13:52 +02:00
firmwares Merge branch 'master' into ide-1.5.x 2014-09-16 12:19:39 +02:00
libraries allow HID submodules to create runtime descriptors 2015-07-16 13:13:52 +02:00
variants Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
boards.txt Yun bootloader without blink 2015-07-07 17:15:42 +02:00
platform.txt Enable C11 support 2015-07-16 13:06:10 +02:00
programmers.txt Support the Atmel STK500 development board for ISP 2015-06-05 18:43:25 +02:00