Cannot Locate Installation Path

I am trying to build my own switch controller using Arduino which calls for the modification of the HID library.

The instructions state to follow the installation path for Arduino to locate these files for Windows 10: <your arduino installation path>/hardware/arduino/avr/libraries/HID/src/HID.h

However I cannot locate this path anywhere (ProgramFiles,Programx86,My User Profile, AppData) I tried to search for HID.h under myPC and all sub folders and it cannot be found.

Has anyone else experienced this? I was using 1.8.15 and tried switching to the 2.0.0 beta to get this path and neither one helps. Can anyone help me find this path?

If you use the installer to install the Arduino IDE, then you are asked where you want to install it. If you using the .ZIP file version of the IDE, then it's wherever you unzipped the file at. If you use the Microsoft App store version of the Arduino IDE, then it is a bit better hidden away, but the location is not really that useful to know because apps are locked down pretty tight with security restrictions so you would have to go through a lot of hassle to be able to modify any files in that path.

But none of that is even relevant if you're using Arduino IDE 2.0.0-beta now because it doesn't come with a bundled installation of Arduino AVR boards, so you won't find the file you're looking for at that path. And in fact, even using Arduino IDE 1.8.15, although you will find the file there, that isn't necessarily the copy of the file that is being used by the Arduino IDE, since another copy might have been installed to another location.

I'm going to provide you with the instructions for finding the path of the active copy of this file. Just do this:

  1. Start the Arduino IDE.
  2. Select File > Preferences from the Arduino IDE's menus.
  3. Check the box next to "Show verbose output during: [] compilation".
  4. Click the OK button.
  5. Select File > New from the Arduino IDE's menus.
  6. Add the following code to the top of the sketch:
    #include <HID.h>
  7. Select the Arduino board you are planning to use for your switch controller from the Arduino IDE's Tools > Board menu. If the platform for your board isn't shown there, then you will need to use Boards Manager to install it.
  8. Select Sketch > Verify/Compile from the Arduino IDE's menus.
  9. Wait for the compilation to end.

Examine the contents of the black console pane at the bottom of the Arduino IDE window. There you will find something like this:

Using library HID at version 1.0 in folder: C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\libraries\HID 

That is the location of the file you are searching for.

Note that the C:\Users\<user name>\AppData folder is hidden in Windows File Manager by default. You will need to adjust the settings in order to make it show hidden folders.

Thank you!

I did unusual the beta and reinstall 1.8.15 through the Microsoft store. So when I followed your steps the pathway guess to WindowsApp which I can't even access.

Sounds like I need to uninstall this IDE and manually download and install it. So I will try this next

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.