-
Notifications
You must be signed in to change notification settings - Fork 2
Home
#Welcome to the iShield Arduino Library wiki!
In this section you going to find all the information you need to create your first project using iShield. Remember, iShield has two parts, the iOS App, and the Arduino iShield Library. Also you should have the BLE Shield from Red Bear Labs (here is the link).
In order to use the iShield Arduino Library you should clone this repo to your computer or you can use the Codebender project. Codebender is a cool way to program your Arduino online, no downloads requiered, your code will always be online and it's free. You just need Firefox or Chrome. Don't forget to download the iShield App into your iOS device.
Step 1 - Sign Up Codebender
https://codebender.cc/
Step 2 - Install Codebender Plugin
A message will appear to inform you that you will have to follow the Codebender "Getting Started Guide". Just click on the "Let's Go!" button.
Step 3 - Install Drivers
You may need to install hardware drivers in order for your board to work with your PC, Codebender will guide you through the install procedure if required.
Step 4 - Try it!
Try it and clone the iShield project, it is ready to use! (just select the right port and the right board)
https://codebender.cc/sketch:72280
Read in the documentation how to use the other components.
##Using
You can see in the previous project an object called iShield myiShield
. This is the most important variable in our project and it allow us to use all the methods of the library. You can declare the iShield object in the heap as a globlal variable.
In the void setup()
init the BLE Library.
void setup()
{
// Init. and start BLE library.
ble_begin();
}
In the void loop()
section we use the getInbox()
to listen messages from the iOS device.
void loop()
{
myiShield.getInbox();
}
iShield was crafted with love by @viccarre. The objective of this project is to encourage makers and Arduino fans to build cool projects using their iPhone or iOS device. Feel free to give some feedback and please don't forget to share this project with others.
The MIT License (MIT)
Copyright (c) 2015 Victor Carreño
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.