NintendoSwitchControlLibrary icon indicating copy to clipboard operation
NintendoSwitchControlLibrary copied to clipboard

error: 'CustomHID' was not declared in this scope

Open arnthorrr opened this issue 1 year ago • 1 comments

私は日本語が話せないので、英語からdeepl翻訳を使っています。

私は arduino uno r4 minima を持っていて、スイッチのボタンを押させたいのですが、このライブラリが含まれているものをコンパイルしようとすると、いつもこのエラーが出ます。

`C:\Users\marty\Documents\Arduino\libraries\NintendoSwitchControlLibrary\src\SwitchControlLibrary\SwitchControlLibrary.cpp: In constructor 'SwitchControlLibrary_::SwitchControlLibrary_()': C:\Users\marty\Documents\Arduino\libraries\NintendoSwitchControlLibrary\src\SwitchControlLibrary\SwitchControlLibrary.cpp:58:3: error: 'CustomHID' was not declared in this scope CustomHID().AppendDescriptor(&node); ^~~~~~~~~ C:\Users\marty\Documents\Arduino\libraries\NintendoSwitchControlLibrary\src\SwitchControlLibrary\SwitchControlLibrary.cpp: In member function 'void SwitchControlLibrary_::sendReport()': C:\Users\marty\Documents\Arduino\libraries\NintendoSwitchControlLibrary\src\SwitchControlLibrary\SwitchControlLibrary.cpp:69:3: error: 'CustomHID' was not declared in this scope CustomHID().SendReport(&_joystickInputData, ^~~~~~~~~

exit status 1

Compilation error: exit status 1`

私はc++を知りませんが、"customhid "がインクルードされていないように見えますか?

これが何を意味するのかわかりません。 私は混乱している。

arnthorrr avatar Aug 09 '24 01:08 arnthorrr

前提として、当ライブラリはArduino Leonardoで使用することを想定しており、Arduino Uno R4 Minimaでの動作に関しては想定していないものとなります。

手順通りに導入している場合、そちらのエラーは発生しない認識になります。

lefmarna avatar Aug 11 '24 14:08 lefmarna