orcadom / DS4

GNU General Public License v3.0
1 stars 0 forks source link

it doesn't compile #1

Open ByKush24 opened 1 month ago

ByKush24 commented 1 month ago

it doesn't compile, I use the example code

` C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp: In member function 'void DS4::begin()': C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:265:12: error: 'HIDSubDescriptor' does not name a type; did you mean 'reportDescriptor'? static HIDSubDescriptor node(reportDescriptor, DS4_REPORT_SIZE); ^~~~ reportDescriptor C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:266:2: error: 'HID' was not declared in this scope HID().AppendDescriptor(&node); ^~~ C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:266:2: note: suggested alternative: 'PIND' HID().AppendDescriptor(&node); ^~~ PIND C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:266:26: error: 'node' was not declared in this scope HID().AppendDescriptor(&node); ^~~~ C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:266:26: note: suggested alternative: 'tone' HID().AppendDescriptor(&node); ^~~~ tone C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp: In member function 'void DS4::send()': C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:322:5: error: 'HID' was not declared in this scope HID().SendReport(0x01, outputData, DS4_OUTPUT_SIZE); ^~~ C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:322:5: note: suggested alternative: 'PIND' HID().SendReport(0x01, outputData, DS4_OUTPUT_SIZE); ^~~ PIND

exit status 1

Compilation error: exit status 1


C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:265:12: error: 'HIDSubDescriptor' does not name a type; did you mean 'reportDescriptor'?
     static HIDSubDescriptor node(reportDescriptor, DS4_REPORT_SIZE);
            ^~~~~~~~~~~~~~~~
            reportDescriptor
C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:266:2: error: 'HID' was not declared in this scope
  HID().AppendDescriptor(&node);
  ^~~
C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:266:2: note: suggested alternative: 'PIND'
  HID().AppendDescriptor(&node);
  ^~~
  PIND
C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:266:26: error: 'node' was not declared in this scope
  HID().AppendDescriptor(&node);
                          ^~~~
C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:266:26: note: suggested alternative: 'tone'
  HID().AppendDescriptor(&node);
                          ^~~~
                          tone
C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp: In member function 'void DS4::send()':
C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:322:5: error: 'HID' was not declared in this scope
     HID().SendReport(0x01, outputData, DS4_OUTPUT_SIZE);
     ^~~
C:\Users\user\Documents\Arduino\libraries\DS4\DS4.cpp:322:5: note: suggested alternative: 'PIND'
     HID().SendReport(0x01, outputData, DS4_OUTPUT_SIZE);
     ^~~
     PIND

exit status 1

Compilation error: exit status 1
`
orcadom commented 1 month ago

Which board are you compiling for?

ByKush24 commented 1 month ago

Which board are you compiling for?

It was uno, I think it's incompatible I will get a compatible one soon, was leonardo compatible?