Skip to content

IDE setup

Luke Goertzen edited this page Sep 12, 2019 · 5 revisions

This page is outdated, see the similar page on the Loom Wiki for a more maintained version.

Arduino IDE Setup for OPEnS Lab

Follow this guide to begin using the Loom library with Adafruit Feather M0 boards

General Setup

  • Download and install the latest version of Arduino IDE
* NOTE: If installing on Linux see the official [Linux install guide](https://www.arduino.cc/en/Guide/Linux) 
  • Start the IDE and navigate to File->Preferences (Windows/Linux), Arduino->Preferences (MacOS/OSX)
  • Find "Additional Boards Manager URLs" dialog box and copy/paste the following url:
* https://adafruit.github.io/arduino-board-index/package_adafruit_index.json - This includes support for Feather M0 boards (The one you will be using) 
  • Click OK and restart the IDE

Install Boards

  • Open the Board Manager by navigating to Tools->Board->'Boards Manager'
  • Install Arduino SAMD Boards Support (version 1.6.11 or later), by typing Arduino SAMD in the top search bar. Click install on the entry named "Arduino SAMD Boards (32-bits ARM Cortex-M0+)"
  • Install Adafruit SAMD Package to add board file definitions. Type Arduino SAMD in the top search bar. Click install on the entry named "Adafruit SAMD Boards". The description of the package should mention support for feather M0
  1. Close the board's manager and restart the IDE
  2. Navigate to Tools->Board, the Adafruit Feather M0 boards should be listed, select Adafruit Feather M0

Libraries setup

This section describes how to integrate Loom into the Arduino IDE

Manual/Custom Dependencies

  1. Loom has a variety of dependencies, these can be found in the Dependencies folder in the InternetOfAg. Download the InternetOfAg repo as a zip file.
  2. Extract all zip files found in the Dependencies folder to the <arduino/install/destination>/libraries/ folder. The libraries folder should have no zip files, only regular folders.
  3. Download the OPEnS RTC repo and extract it's contents to the same libraries folder as the previous step.

Official libraries

  1. From within the Arduino IDE navigate to Sketch->'Include Library'->'Manage Libraries...'.
  2. Search for 'AsyncDelay' and install the most recent version of the library.

Loom Library

  1. Download the Loom library and extract the Loom folder inside the zip file to the same libraries/ folder as steps 2 & 3.
  2. Restart the Arduino IDE and perform any library updates as necessary. The IDE should notify you at the bottom of the editor of any available updates.
  3. Finally, navigate to Sketch->'Include Library' and select Loom. This will add the following line at the top of your sketch:

<code C++> #include <Loom.h>

</code>

This gives your sketch access to the Loom Library of functions.

Clone this wiki locally