Arduino Library
- Small footprint
- Easy to interface
- Includes example sketches
The open source Arduino Library can be used in your Arduino Projects,
The Library will help you to setup your system as an Azande Target.
The Library also includes Embedded Macros that will help you with creation of your Features.
Downloads
Click here to access download of the Arduino Library
Examples included in Library
- Arduino Example Calculate
- Arduino Example Calculate WiFi
- Arduino Example DHT11
- Arduino Example RGB LED
- Arduino Example Software Reset
- Arduino Example Ultrasonic Range
- Arduino Example WiFi Signal Strength
- Arduino Example Gball
Library Files
Azande |
|
examples |
|
proj_x |
Contains all example sketches |
.. |
|
src |
|
Azande.cpp |
Core implementation of Azande. |
Azande.h |
Header file to be #include in your application code. |
AzandeSystemConfig.h |
Internal Configuration. |
AzandeUserMacros.h |
Holds all macros that will help you build your Feature. More details in Embedded Macros |
Interfacing with your application code
You have following interfaces to the Azande Library:
- Add #include <Azande.h>
- Define your targetInfo object with the Embedded Macros
- Define your COMMAND and EVENT objects with the Embedded Macros
- Add Azande object: Azande azande(Serial); this will setup Azande to use Serial as communication channel (Stream).
- In setup() initialize the Stream you are using. example: call Serial.begin(19200); if you use Serial.
- In setup() call azande.begin(targetInfo);
- In setup() call azande.add(cmdXXX); for each Command and Event you want to use.
- Let Azande read incoming serial data. To get fast response call at least once every 100ms.
- Call azande.readStream() in loop()
- or if serialEvent() is supported in your Arduino call azande.readStream() from serialEvent().
void serialEvent() { azande.readStream(); } |
When you want to send an event call azande.send(...);
At run time change collection of available Features
If your application changes and want to have another set of Features available for the user, do following:
- call azande.clear(); This will clear the collection of Commands and Events
- call azande.add(cmdXXX); for each Command and Event you want to use.
- call azande.notify(); This will notify Azande Studio that the Feature Collection has changed. Azande Studio will now start a new Discovery Process.