Where to find the default library source code in IDE 2.x on PC, for example the "SoftwareSerial" ? I found it was different from IDE 1.8.x.
The location of board specific libraries depend on which board you are using. I am surprised that the location is different from 1.8.x
So, which board are you using ?
I'd add: which OS are you using?
IDE 2.3.4 under Windows, I found here the default libraries ("userid" is your Windows user ID):
c:\Users\userid\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\
Not to my knowledge, show us the two different paths.
I have both IDE 1.x and 2.x installed, they share the same support code.
If you did update the AVR board package from the default 1.8.3 to 1.8.6 the latest version of those libraries will be the same location
Also applies to all other board packages (those are not installed by default).
The general path for Windows is C:\Users\yourUsername\AppData\Local\Arduino15\packages and the stuff that you're looking for is somewhere in the sub directories (see reply #3)
The easy way to find it is to enable Show verbose output during compilation under file → preferences and compile a sketch with the library in question. The output will tell you which files are compiled and you can take it from there.
https://docs.arduino.cc/arduino-cli/library-specification/
It's "Arduino fifteen" since
This is the specification for the Arduino library format, to be used with Arduino IDE 1.5.x onwards.
- rev.1 has been implemented starting with Arduino IDE version 1.5.3 (now superseded by rev.2)
- rev.2 will be implemented starting from Arduino IDE version 1.5.6
- rev.2.1 will be implemented starting from Arduino IDE version 1.6.10
- rev.2.2 will be implemented starting from Arduino IDE version 1.8.10
This new library format is intended to be used in tandem with Library Manager, available since Arduino IDE 1.6.2.
https://support.arduino.cc/hc/en-us/articles/360018448279-Open-the-Arduino15-folder
With IDE 2.x, after compiling your project, you can Ctrl + Click (on Windows, use the equivalent with your OS) on a library's .h file to open it in a new tab.
Unfortunately, only the .h file opens (which is quite odd), but you can easily find the full path by hovering over the filename with your mouse.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
