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 GPIO2_PREFER_SPEED   1
 
#define ACTION_STACK_SIZE   5
 
#define NO_EEPROM
 
#define ACCESSORIES_DEBUG_MODE
 
#define ACCESSORIES_DEBUG_VERBOSE_MODE
 
#define ACCESSORIES_PRINT_ACCESSORIES
 
#define NO_EEPROM
 

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 467 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 470 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 476 of file Accessories.h.

#define ACTION_STACK_SIZE   5

Default size of action stack.

Definition at line 328 of file Accessories.h.

#define GPIO2_PREFER_SPEED   1

This is used internally by DIO2.h

Definition at line 323 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 478 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 478 of file Accessories.h.