ArduinoCore-avr/libraries
Martino Facchin 3d61f6e37e 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
..
EEPROM Examples: mass code format. See example_formatter.conf 2015-07-06 15:19:05 +02:00
HID allow HID submodules to create runtime descriptors 2015-07-16 13:13:52 +02:00
SPI Examples: mass code format. See example_formatter.conf 2015-07-06 15:19:05 +02:00
SoftwareSerial Examples: mass code format. See example_formatter.conf 2015-07-06 15:19:05 +02:00
Wire Examples: mass code format. See example_formatter.conf 2015-07-06 15:19:05 +02:00