lefmarna / NintendoSwitchControlLibrary

A library for microcontrollers that uses Arduino to automate Nintendo Switch games.
MIT License
87 stars 15 forks source link

error: 'CustomHID' was not declared in this scope #24

Open ImXyper opened 1 month ago

ImXyper commented 1 month ago

私は日本語が話せないので、英語から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 "がインクルードされていないように見えますか?

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

lefmarna commented 1 month ago

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

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