Skip to content

Commit f5c4c7b

Browse files
committed
allow USB_VID/PID to be declared in variant pins_arduino.h
1 parent a5f8ea0 commit f5c4c7b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/examples/**/build/
2+
/.development

src/arduino/Adafruit_USBD_Device.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@
3131
#include "Adafruit_USBD_CDC.h"
3232
#include "Adafruit_USBD_Device.h"
3333

34+
// USB Information can be defined in variant file e.g pins_arduino.h
35+
#include "Arduino.h"
36+
3437
#ifndef USB_VID
3538
#define USB_VID 0xcafe
39+
#endif
40+
41+
#ifndef USB_PID
3642
#define USB_PID 0xcafe
3743
#endif
3844

0 commit comments

Comments
 (0)