Error to compile the firmware.
levibarrocas opened this issue · comments
It's probably my mistake somewhere BUT when I try to compile I am getting this issue.
Flatbox.ino: In function 'void sendReport()':
Flatbox:192:5: error: 'HID' was not declared in this scope
HID().SendReport(1, &report, sizeof(report));
^~~
Flatbox.ino:192:5: note: suggested alternative: 'PIND'
HID().SendReport(1, &report, sizeof(report));
^~~
PIND
Flatbox.ino: In function 'void setup()':
Flatbox:198:10: error: 'HIDSubDescriptor' does not name a type; did you mean 'hidReportDescriptor'?
static HIDSubDescriptor node(hidReportDescriptor, sizeof(hidReportDescriptor));
^~~~~~~~~~~~~~~~
hidReportDescriptor
Flatbox:199:3: error: 'HID' was not declared in this scope
HID().AppendDescriptor(&node);
^~~
Flatbox.ino:199:3: note: suggested alternative: 'PIND'
HID().AppendDescriptor(&node);
^~~
PIND
Flatbox:199:27: error: 'node' was not declared in this scope
HID().AppendDescriptor(&node);
^~~~
Flatbox.ino:199:27: note: suggested alternative: 'tone'
HID().AppendDescriptor(&node);
^~~~
tone
exit status 1
'HID' was not declared in this scope
Did you install the SparkFun Pro Micro board definition (addon) and select the Pro Micro as the board in the "Tools" menu?
Here's a walkthrough from SparkFun:
https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide#installing-windows
(Not sure if all the driver stuff is necessary as I'm not using Windows for this. But the addon in the Board Manager is definitely necessary.)