The FadeLED library can be installed in two different ways: cloning this repository using Git on your host, or downloading the repository as a ZIP file and installing it from the Arduino IDE. For either procedure you need to know where your IDE stores user-installed libraries.
- Open the Arduino IDE.
- From the menu click File -> Preferences.
- Make note of the "Sketchbook location:" field. For example, on a Windows system it might say
C:\Users\the_doctor\Arduino
. In this case, libraries are stored inC:\Users\the_doctor\Arduino\libraries
. - Jot your sketchbook location down somewhere and tack
\libraries
(Windows) or/libraries
(Max OS X or Linux) onto the end. You will need this later.
Git is available for all the same operating systems (Windows, Mac OS X, Linux) which can run the Arduino IDE. Git graphical user interfaces for most if not all of these operating systems exist, but they're different enough that it's not practical to include instructions for all of them. What is available on all systems is the Git command line interface. So here are the instructions for using the Git CLI.
-
If you haven't already, download and install Git for your operating system. Git can be downloaded from https://git-scm.com/downloads.
-
Open a command shell on your host. On my Windows system, I use Git Bash, which installs with Git.
-
Change to your
libraries
directory. From Git Bash, that might look like:$ cd /c/Users/the_doctor/Arduino/libraries
-
From a web browser, go to this library's repository at https://github.com/twrackers/FadeLED-library.
-
Click on the green
Code
button, then under "Clone" click on the little clipboard symbol on the right. This copies the URL of the repository to your clipboard. -
In your command shell, type "git clone ", then paste the URL from the previous step into your command line. You should see:
$ git clone https://github.com/twrackers/FadeLED-library.git
-
Hit
Enter
to clone the repository into yourlibraries
directory. -
If your Arduino IDE is running, close it now.
-
If you type
ls -l
, you will see a list of your libraries, including one namedFadeLED-library-main
. It needs to be renamed:$ mv FadeLED-library-main FadeLED
-
You can now start the Arduino IDE again. If from the menu you click Sketch -> Include Library, you should be able to scroll down to find
FadeLED
.
- From a web browser, go to this library's repository at https://github.com/twrackers/FadeLED-library.
- Click on the green
Code
button, then clickDownload ZIP
. Save the downloaded file somewhere where you'll be able to find it. - If your Arduino IDE isn't already running, start it now.
- From the menu, click Sketch -> Include Library -> Add .ZIP Library.... This will open a file chooser window.
- Locate the ZIP file you downloaded, then open it. This will install the library to your
libraries
directory. - Close the Arduino IDE for now.
- Navigate to your
libraries
directory. You will see a directory namedFadeLED-library-main
. Rename it to simplyFadeLED
. - You can now start the Arduino IDE again. If from the menu you click Sketch -> Include Library, you should be able to scroll down to find
FadeLED
.