GithubHelp home page GithubHelp logo

onioniot / onion-arduino-library Goto Github PK

View Code? Open in Web Editor NEW
9.0 10.0 7.0 657 KB

Onion library for use with the Arduino IDE and the Arduino Dock

License: GNU General Public License v3.0

C++ 100.00%

onion-arduino-library's Introduction

Onion-Arduino-Library

Onion library for use with the Arduino IDE and the Arduino Dock.

Combine the ease of use of Arduino with the flexibility and power of Linux with the Onion Omega!

Arduino Dock R2

Arduino Dock Documentation

Full and up-to-date documentation can be found in our docs site:

Requirements

  • Arduino IDE 1.8.0 or later
  • Arduino Dock R2
    • The Arduino Dock R1 model is no longer in production, but still compatible with this library (see "Preparing to Flash" below).
  • An Onion Omega board to flash sketches to the Dock:
    • Omega2
    • Omega2+
    • Omega 1 - no longer in production, but still compatible

If you want to buy Onion products outside of the US, you can also find a local distributor near you.

Installation

  1. Open the Arduino IDE and click Sketch -> Include Library -> Manage Libraries...
  2. Search for Onion Arduino Library
  3. Click Install
  4. Close the Library Manager and you're ready to go!

Contents

This library contains code needed to flash the Arduino Dock R1 model, as well as example sketches that showcase how the Atmel microcontroller and Omega can exchange data and commands.

Classes

Onion

  • Required for flashing Model R1 units. See "Preparing to Flash" for full instructions.

More information coming soon!

Example Sketches

You can find example sketches by clicking on File -> Examples -> Onion.

Preparing to Flash

The flashing process will depend if you are using the first model of the Dock (R1) or the second (R2).

Arduino Dock R1:

Arduino Dock R1

Arduino Dock R2 (note the Expansion Header in the left corner of the board):

Arduino Dock R2

See the sections below for how to use the library for each model.

Model R1

In your sketch, add the Onion Library by clicking in the top menu bar: Sketch -> Include Library -> Onion.

Add the Onion Library

Once the library has been added, create a global instance of the Onion object. Add the following line on the global scope:

Onion* onionSetup;

To initialize and activate the library functions, add the following line to the setup() function in the sketch:

onionSetup = new Onion();

Model R2

We've made sweeping improvements in this revision, so you don't have to include the library to flash it; no additional steps are needed! :)

Flashing the Arduino Dock

Follow the instructions in our Arduino Dock documentation:

https://docs.onion.io/omega2-docs/flash-arduino-dock-wirelessly.html

onion-arduino-library's People

Contributors

greenbreakfast avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onion-arduino-library's Issues

Why lib need Adafruit NeoPixel?

When i trying to compile blink2 sketch, Arduino IDE required to install Adafruit NeoPixel lib because it's used in Onion library.
fatal error: Adafruit_NeoPixel.h: No such file or directory
Why i need it to install, when i just want wireless sketch upload =(

cant upload scketch to Arduino dock 2

hi,
I m trying to upload a sketch to arduino dock 2 via omega 2+ as instructed this link https://docs.onion.io/omega2-docs/flash-arduino-dock-wirelessly.html#flash-arduino-dock-wirelessly and unfortunatelly arduino dock led s turn off s. then I tried instructions for omega at the link of https://wiki.onion.io/Tutorials/Arduino-Dock/Using-the-Arduino-Dock#the-onion-arduino-library with onion library and result same. there is no problem with connection. I get errors while uploading. as you will see at picture. getting error flash not successfull and other errors I cant relate.. regards..
dock error
and I tried to upload manually as instructed link https://docs.onion.io/omega2-docs/flash-arduino-dock-wirelessly.html section Manually Flashing on the Command line and get errors seen in thi pic below

manuel error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.