-
Notifications
You must be signed in to change notification settings - Fork 210
Installing GUIslice on Arduino
Overview >
The following options are available for users who wish to use the Arduino IDE for development.
Please note that there was a bug in the Arduino/gcc compiler that shipped with older Arduino IDE versions (1.8.6 to 1.8.9) that can impact build stability (resulting in a lto1.exe
error). Thankfully, this has been fixed in the latest Arduino IDE. It is recommended that users upgrade their IDE to 1.8.10 (or later) and also upgrade the Arduino AVR Boards in the Board Manager to version 1.8.1 (or later):
- Download and install the latest Arduino IDE from arduino.cc
- In Arduino IDE, select Tools -> Board: ... -> Boards Manager
- Find Arduino AVR Boards in the list
- If the version installed is lower than 1.8.1, then click on Select version, change it to 1.8.1 (or later) and then click on Install
Installing a major release version of GUIslice can be done from the Arduino IDE:
- Click on Sketch -> Include Library... -> Manage Libraries...
- In the search bar, type:
GUIslice
- Select the latest version from the dropbox and click Install
Please Note: GUIslice versions installed from the IDE may be several weeks out of date versus new features & fixes posted to the GitHub repository.
If you would like the most recent version of GUIslice under development, you can install the library directly from the GitHub repository:
- Download the GUIslice library
- From the GUIslice page, click Clone or Download and then Download ZIP.
- Extract the ZIP file on your computer. This will probably create a
GUIslice-master
folder on your computer (let's call this the GUIslice unzipped folder).
- Move this unzipped folder into your Arduino libraries folder
- To find your Arduino IDE libraries folder, go to File -> Preferences and note the path to your Sketchbook folder
- Navigate to this folder and look for the
libraries
subfolder. This is your Arduino Library folder. - Ensure that any old copies of GUIslice within the Arduino Library folder (either
GUIslice
orGUIslice-master
are removed first. Note that if you have previously modified the GUIslice config file, you may want to save a copy of it or move it elsewhere first. - Drag the unzipped GUIslice folder into the Arduino libraries folder
- Install selected graphics and hardware libraries
- The GUIslice TFT/OLED Configuration table provides some guidance on determining which drivers and additional libraries may need to be installed via the Arduino IDE for the more popular displays.
- Use the Arduino IDE's Include Library -> Manage Libraries option to add these libraries. eg. Adafruit-GFX, Adafruit-ILI9341 and Adafruit-STMPE610.
The following method is available for users who wish to use PlatformIO for development. This is only an initial capture of the steps -- it will be revised soon.
- Install PlatformIO. Often this can be done within an IDE environment such as Atom.
- Install libraries via File -> Settings then click on Libraries
- Search for the applicable library names in the search bar and click Install for each:
-
Adafruit GFX Library
,Adafruit ILI9341
,Adafruit STMPE610
(or as needed by your setup) GUIslice
- The above should download the libraries to your PlatformIO library folder, eg:
C:\Users\username\.platformio\lib\
- From the Home page, click on Import Arduino Project, navigate to the downloaded library folder and click on Import. This will create a copy of the project in your user projects directory, eg:
C:\Users\username\Documents\PlatformIO\Projects\
- Open the imported project, modify any configuration files necessary
- Select PlatformIO -> Build then PlatformIO -> Run