Accessories
Arduino for motors and lights library.
Accessories.h File Reference
#include "DIO2.h"
#include "Port.hpp"
#include "AccessoryMotorOneWay.hpp"
#include "AccessoryMotorTwoWays.hpp"
#include "AccessoryServo.hpp"
#include "AccessoryStepper.hpp"
#include "AccessoryLight.hpp"
#include "AccessoryLightMulti.hpp"
#include "AccessoryGroup.hpp"
#include "PortOnePin.hpp"
#include "PortTwoPins.hpp"
#include "PortTwoPinsEnable.hpp"
#include "PortSpeedDirBrake.hpp"
#include "PortShieldL293d.hpp"
#include "PortServo.hpp"
#include "PortStepper.hpp"
#include "Accessories.hpp"

Go to the source code of this file.

Macros

#define LIBRARY_VERSION   "Accessories V1.2.0"
 
#define GPIO2_PREFER_SPEED   1
 
#define ACTION_STACK_SIZE   5
 
#define NO_GROUP
 
#define NO_MOTOR
 
#define NO_SERVO
 
#define NO_STEPPER
 
#define NO_LIGHT
 
#define NO_SHIELDL293D
 
#define NO_EEPROM
 
#define NO_EXPANDER
 
#define NO_EXPANDER_SX1509
 
#define NO_EXPANDER_74HC595
 
#define ACCESSORIES_DEBUG_MODE
 
#define ACCESSORIES_DEBUG_VERBOSE_MODE
 
#define ACCESSORIES_PRINT_ACCESSORIES
 
#define NO_EEPROM
 
#define NO_EXPANDER_SX1509
 
#define NO_EXPANDER_74HC595
 

Detailed Description

Main include file of the library.

Definition in file Accessories.h.

Macro Definition Documentation

#define ACCESSORIES_DEBUG_MODE

If this is defined, the library will do many checks during setup and execution, and print errors, warnings and information messages on console. These messages can take a lot of memory, so be careful about the free memory of your program if you activate debug mode.

Definition at line 469 of file Accessories.h.

#define ACCESSORIES_DEBUG_VERBOSE_MODE

If this is defined, the Verbose mode lets you see all actions done by the library, but with a real flood of text to the console... It has no effect if ACCESSORIES_DEBUG_MODE is not activated.

Definition at line 472 of file Accessories.h.

#define ACCESSORIES_PRINT_ACCESSORIES

If this is defined, the function Accessories::printAccessories() will become available. This is useful to try to understand why a port, or an accessory is not correctly defined. This function uses a lot of memory, so activate it only if necessary, and be careful about your program's memory. You can use the define PRINT_ACCESSORIES() in your sketch instead of a call to Accessories::printAccessories(). If ACCESSORIES_PRINT_ACCESSORIES is not defined, PRINT_ACCESSORIES is defined as empty, so you will not have a compilation error.

Definition at line 478 of file Accessories.h.

#define ACTION_STACK_SIZE   5

Default size of action stack.

Definition at line 360 of file Accessories.h.

#define GPIO2_PREFER_SPEED   1

This is used internally by DIO2.h

Definition at line 355 of file Accessories.h.

#define NO_EEPROM

If this is defined, the state of all the library will not be saved to EEPROM.

Definition at line 482 of file Accessories.h.

#define NO_EEPROM

If this is defined, the state of all the library will not be saved to EEPROM.

Definition at line 482 of file Accessories.h.

#define NO_EXPANDER

If this is defined, the expander sources will not be included in compilation.

Definition at line 452 of file Accessories.h.

#define NO_EXPANDER_74HC595

If this is defined, the expander sources for circuit 74HC595 device will not be included in compilation.

Definition at line 499 of file Accessories.h.

#define NO_EXPANDER_74HC595

If this is defined, the expander sources for circuit 74HC595 device will not be included in compilation.

Definition at line 499 of file Accessories.h.

#define NO_EXPANDER_SX1509

If this is defined, the expander sources for SX1509 device will not be included in compilation.

Definition at line 498 of file Accessories.h.

#define NO_EXPANDER_SX1509

If this is defined, the expander sources for SX1509 device will not be included in compilation.

Definition at line 498 of file Accessories.h.

#define NO_GROUP

If this is defined, groups part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.

Definition at line 433 of file Accessories.h.

#define NO_LIGHT

If this is defined, all the lights part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.

Definition at line 445 of file Accessories.h.

#define NO_MOTOR

If this is defined, all the motors part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.

Definition at line 436 of file Accessories.h.

#define NO_SERVO

If this is defined, the servo part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.

Definition at line 439 of file Accessories.h.

#define NO_SHIELDL293D

If this is defined, the Arduino Shield L293D part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.

Definition at line 448 of file Accessories.h.

#define NO_STEPPER

If this is defined, the stepper motor part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.

Definition at line 442 of file Accessories.h.