Commanders
Arduino buttons/bus library
Commanders.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------
2 #ifndef __commanders_H__
3 #define __commanders_H__
4 //-------------------------------------------------------------------
5 
428 // Remove the '//' at the beginning of the line to be in debug mode.
430 #define COMMANDERS_DEBUG_MODE
431 
433 // Remove the '//' at the beginning of the line to be in verbose debug mode.
434 //#define COMMANDERS_DEBUG_VERBOSE_MODE
435 
437 // Remove the '//' at the beginning of the line to activate the print function.
438 #define COMMANDERS_PRINT_COMMANDERS
439 
441 #define GPIO2_PREFER_SPEED 1
442 
443 #include <DIO2.h>
444 
446 // Exclusion area
447 //
448 //NO_CANCOMMANDER
449 // CANCommander.cpp
450 // CANCommander.hpp
451 //
452 //NO_DCCCOMMANDER
453 // DccCommander.cpp
454 // DccCommander.hpp
455 // DCC_Decoder.cpp
456 // DCC_Decoder.hpp
457 //
458 //NO_I2CCOMMANDER
459 // I2CCommander.cpp
460 // I2CCommander.hpp
461 //
462 //NO_SERIALCOMMANDER
463 // SerialCommander.hpp
464 // TextInterpreter.cpp
465 // TextInterpreter.hpp
466 //
467 //NO_BUTTONSCOMMANDER
468 // ButtonsCommander.cpp
469 // ButtonsCommander.hpp
470 // ButtonsCommanderButtons.cpp
471 // ButtonsCommanderButtons.hpp
472 // ButtonsCommanderEncoder.cpp
473 // ButtonsCommanderEncoder.hpp
474 // ButtonsCommanderPush.cpp
475 // ButtonsCommanderPush.hpp
476 // ButtonsCommanderSwitch.cpp
477 // ButtonsCommanderSwitch.hpp
478 // ButtonsCommanderPotentiometer.cpp
479 // ButtonsCommanderPotentiometer.hpp
480 //
481 //NO_BUTTONSCOMMANDERENCODER
482 // ButtonsCommanderEncoder.cpp
483 // ButtonsCommanderEncoder.hpp
484 //
485 //NO_BUTTONSCOMMANDERPUSH
486 // ButtonsCommanderPush.cpp
487 // ButtonsCommanderPush.hpp
488 //
489 //NO_BUTTONSCOMMANDERANALOGPUSHES
490 // ButtonsCommanderAnalogPush.cpp
491 // ButtonsCommanderAnalogPush.hpp
492 //
493 //NO_BUTTONSCOMMANDERSWITCH
494 // ButtonsCommanderSwitch.cpp
495 // ButtonsCommanderSwitch.hpp
496 //
497 //NO_BUTTONSCOMMANDERPOTENTIOMETER
498 // ButtonsCommanderPotentiometer.cpp
499 // ButtonsCommanderPotentiometer.hpp
500 //
501 //NO_EVENTsSEQUENCER
502 // EventsSequencer.cpp
503 // EventsSequencer.hpp
504 
505 //#define NO_BUTTONSCOMMANDER
506 //#define NO_BUTTONSCOMMANDERENCODER
507 //#define NO_BUTTONSCOMMANDERPUSH
508 //#define NO_BUTTONSCOMMANDERANALOGPUSHES
509 //#define NO_BUTTONSCOMMANDERSWITCH
510 //#define NO_BUTTONSCOMMANDERPOTENTIOMETER
511 #define NO_CANCOMMANDER
512 #define NO_DCCCOMMANDER
513 #define NO_I2CCOMMANDER
514 //#define NO_SERIALCOMMANDER
515 //#define NO_EVENTSSEQUENCER
516 
517 #ifdef DOXYGEN_SPECIFIC
518  // DO NOT CHANGE THESE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for library documentation !
519 
520  #undef NO_BUTTONSCOMMANDER
521  #undef NO_BUTTONSCOMMANDERENCODER
522  #undef NO_BUTTONSCOMMANDERPUSH
523  #undef NO_BUTTONSCOMMANDERANALOGPUSHES
524  #undef NO_BUTTONSCOMMANDERSWITCH
525  #undef NO_BUTTONSCOMMANDERPOTENTIOMETER
526  #undef NO_CANCOMMANDER
527  #undef NO_DCCCOMMANDER
528  #undef NO_I2CCOMMANDER
529  #undef NO_SERIALCOMMANDER
530  #undef NO_EVENTSSEQUENCER
531 
535  #define COMMANDERS_DEBUG_MODE
536 
538  #define COMMANDERS_DEBUG_VERBOSE_MODE
539 
544  #define COMMANDERS_PRINT_COMMANDERS
545 #endif
546 
548 
549 #include "Commander.hpp"
550 #include "Commanders.hpp"
551 
552 #ifndef NO_CANCOMMANDER
553 #include "CANCommander.hpp"
554 #endif
555 
556 #ifndef NO_DCCCOMMANDER
557 #include "DccCommander.hpp"
558 #endif
559 
560 #ifndef NO_I2CCOMMANDER
561 #include "I2CCommander.hpp"
562 #endif
563 
564 #ifndef NO_BUTTONSCOMMANDER
565 #include "ButtonsCommander.hpp"
566 #endif
567 
568 #ifndef NO_SERIALCOMMANDER
569 #include "SerialCommander.hpp"
570 #include "TextInterpreter.hpp"
571 #endif
572 
573 #ifndef NO_EVENTSSEQUENCER
574 #include "EventsSequencer.hpp"
575 #endif
576 
577 #endif