The RedBear Duo supports developing applications using Arduino IDE v1.6.7 or above. If you are using an official Arduino board or third party development boards, you need to install the corresponding board package before you can write your sketch. Arduino provides a smart and easy way for you to install a board package, i.e. "Boards Manager".
We assume that you have installed Arduino IDE 1.6.7 or above on your computer, otherwise you have to download and install it first. To install the board package for the Duo board, please work through the following steps.
-
Start Arduino IDE.
-
Navigate to "File > Preferences"
-
Find the "Additional Boards Manager URLs" label and click on the icon on the right. On the pop up window, new a row and fill it with
https://redbearlab.github.io/arduino/package_redbear_index.json
. Click on "OK" to close the preferences window. -
Navigate to "Tools > Board > Boards Manager". Wait until Arduino IDE downloads the json file we specified before. Then scroll the window to find the RedBear Duo board. Select the version and click on the "Install", it will automatically download and install the board package for the RedBear Duo.
-
After the board package installed, you will see the column for RedBear Duo is marked as "INSTALLED". Click on "Close" to shut down the Boards Manager.
-
Congratulations! The board package for Duo has been successfully installed. Naviagte to "Tools > Board", you can now select board "RedBear Duo (Native USB Port)" if you connect your Duo to computer via its native USB port or, select "RedBear Duo (RBLink USB Port)" if you connect the RBLink with Duo mounted on it to a computer. Navigate to "File > Examples > RedBear_Duo" to see many examples provided for you.
Note: If you don't select RedBear Duo as the target board, you won't see the "RedBear_Duo" listed under "File > Examples".
You are now ready to use the built-in examples or code your own sketch to compile and upload it to your Duo!
Since you have installed a version of the Duo board package already, updating the package becomes much simple.
-
Navigate to "Tools > Board > Boards Manager". Wait until Arduino IDE updates the boards index.
-
Scroll the window to find the RedBear Duo board. Select an upper version and click on the "Update", it will automatically download and install the selected version of the board package.
-
After the board package updates, click on "Close" to shut down the Boards Manager.
Getting Started with Arduino IDE
- Duo Introduction
- Arduino Board Package Change-log
- Arduino Official Website
- Arduino Unofficial List of 3rd Party Boards Support URLs
- RedBear Discussion Forum
Copyright (c) 2016 Red Bear
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.