![]() ![]() Pay close attention to the directory structure here because this is the bit that trips many people up. Once you have the zip file, you need to extract it to your "libraries" folder (that you found in the first step, above.) The downloaded file will have a slightly odd name: it will look like "IRTemp-master.zip". Here's an example for the IRTemp library github page:Ĭlick that button, and your browser will download the library to your computer. Go to the GitHub address for the library you want to download, and look for the button labelled "Download ZIP" on the right hand side toward the bottom. If you're not familiar with Git, don't worry: you can download libraries directly as ZIP files from GitHub, too. It's becoming increasingly common for library authors to manage and publish them using a source code management site called GitHub, so if you're already familiar with the "Git" source code management tool you can use that to clone the latest version of the library to your computer. Libraries are usually published as a ZIP file that you can download and extract. This is the directory we'll use to install new libraries. The folder must have that name so that the Arduino IDE can find it. If the "libraries" directory doesn't exist yet, create it. Inside that directory you'll see one subdirectory for each of the sketches you've saved, and also a single subdirectory called "libraries". Open the sketchbook location (as shown in the Preferences dialog) from inside your file browser, ie Windows Explorer or MacOS Finder. On Windows it is usually named "Arduino" inside the My Documents directory. On OS X and Linux the sketchbook directory is usually named "sketchbook" inside your home directory. You'll see a dialog showing various options including the path to your sketchbook: If you don't know where your sketchbook directory is located, open the Arduino IDE and select the "Preferences" menu. That's handy because it keeps everything in one place. Recent versions of the Arduino IDE allow you to install libraries inside a special folder in the sketchbook directory, which is where your sketches are stored. Your Arduino Libraries DirectoryĪll of your Arduino libraries go into a special "libraries" directory so the Arduino IDE can find them. You can also try the Arduino website, which lists many common libraries at Failing that, try a Google search for "Arduino library" and the name of your hardware, and see what you find. ![]() ![]() If you need Arduino support for a specific piece of hardware, try checking the vendor's website for an Arduino library. For example, our Infrared Temperature Sensor Module has a matching library available called "IRTemp" that you can install in the IDE to make it easy to use the module in your projects. Libraries can come from many places, often from hardware manufacturers who supply libraries to allow the Arduino IDE to support their specific hardware. Instead, it supports "libraries", which are self-contained modules that can be used to extend the software environment to add specific features or hardware support. The Arduino software environment includes many helpful features to make it easier to write programs for your projects, but it can't include built-in support for every single possible piece of hardware or all software features. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |