#include <DIO2.h>
#include "Commander.hpp"
#include "Commanders.hpp"
#include "CANCommander.hpp"
#include "DccCommander.hpp"
#include "I2CCommander.hpp"
#include "ButtonsCommander.hpp"
#include "SerialCommander.hpp"
#include "TextInterpreter.hpp"
#include "EventsSequencer.hpp"
Go to the source code of this file.
Macros | |
#define | LIBRARY_VERSION "Commanders V1.61.2" |
#define | GPIO2_PREFER_SPEED 1 |
#define | NO_BUTTONSCOMMANDERANALOGPUSHES |
#define | NO_BUTTONSCOMMANDERPOTENTIOMETER |
#define | NO_CANCOMMANDER |
#define | NO_DCCCOMMANDER |
#define | NO_I2CCOMMANDER |
#define | NO_SERIALCOMMANDER |
#define | NO_BUTTONSCOMMANDER |
#define | NO_BUTTONSCOMMANDERENCODER |
#define | NO_BUTTONSCOMMANDERPUSH |
#define | NO_BUTTONSCOMMANDERANALOGPUSHES |
#define | NO_BUTTONSCOMMANDERSWITCH |
#define | NO_BUTTONSCOMMANDERPOTENTIOMETER |
#define | NO_CANCOMMANDER |
#define | NO_DCCCOMMANDER |
#define | NO_I2CCOMMANDER |
#define | NO_SERIALCOMMANDER |
#define | NO_EVENTSSEQUENCER |
#define | COMMANDERS_DEBUG_MODE |
#define | COMMANDERS_DEBUG_VERBOSE_MODE |
#define | COMMANDERS_PRINT_COMMANDERS |
Main include file of the library.
Definition in file Commanders.h.
#define COMMANDERS_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 588 of file Commanders.h.
#define COMMANDERS_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 COMMANDERS_DEBUG_MODE is not activated.
Definition at line 591 of file Commanders.h.
#define COMMANDERS_PRINT_COMMANDERS |
If this is defined, the function Commanders::printCommanders() will become available. This is useful to try to understand why a commander, or a commander item 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_COMMANDERS() in your sketch instead of a call to Commanders::printCommanders(). If COMMANDERS_PRINT_COMMANDERS is not defined, PRINT_COMMANDERS is defined as empty, so you will not have a compilation error.
Definition at line 597 of file Commanders.h.
#define GPIO2_PREFER_SPEED 1 |
This is used internally by DIO2.h
Definition at line 459 of file Commanders.h.
#define NO_BUTTONSCOMMANDER |
If this is defined, all the buttons part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 540 of file Commanders.h.
#define NO_BUTTONSCOMMANDERANALOGPUSHES |
If this is defined, the analog push buttons part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 549 of file Commanders.h.
#define NO_BUTTONSCOMMANDERANALOGPUSHES |
If this is defined, the analog push buttons part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 549 of file Commanders.h.
#define NO_BUTTONSCOMMANDERENCODER |
If this is defined, the encoders buttons part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 543 of file Commanders.h.
#define NO_BUTTONSCOMMANDERPOTENTIOMETER |
If this is defined, the potentiometer part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 555 of file Commanders.h.
#define NO_BUTTONSCOMMANDERPOTENTIOMETER |
If this is defined, the potentiometer part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 555 of file Commanders.h.
#define NO_BUTTONSCOMMANDERPUSH |
If this is defined, the push buttons part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 546 of file Commanders.h.
#define NO_BUTTONSCOMMANDERSWITCH |
If this is defined, the switches part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 552 of file Commanders.h.
#define NO_CANCOMMANDER |
If this is defined, the full bus CAN part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 559 of file Commanders.h.
#define NO_CANCOMMANDER |
If this is defined, the full bus CAN part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 559 of file Commanders.h.
#define NO_DCCCOMMANDER |
If this is defined, the DCC railroad modelling protocol command part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 562 of file Commanders.h.
#define NO_DCCCOMMANDER |
If this is defined, the DCC railroad modelling protocol command part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 562 of file Commanders.h.
#define NO_EVENTSSEQUENCER |
If this is defined, the sequencer of events of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 571 of file Commanders.h.
#define NO_I2CCOMMANDER |
If this is defined, the I2C bus part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 565 of file Commanders.h.
#define NO_I2CCOMMANDER |
If this is defined, the I2C bus part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 565 of file Commanders.h.
#define NO_SERIALCOMMANDER |
If this is defined, the serial communication part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 568 of file Commanders.h.
#define NO_SERIALCOMMANDER |
If this is defined, the serial communication part of the library is removed from the compilation. It can result in a smaller memory footprint for the final program.
Definition at line 568 of file Commanders.h.