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 
439 #define LIBRARY_VERSION "Commanders V1.61.1"
440 
442 // Remove the '//' at the beginning of the line to be in debug mode.
443 #define COMMANDERS_DEBUG_MODE
444 
446 // Remove the '//' at the beginning of the line to be in verbose debug mode.
447 //#define COMMANDERS_DEBUG_VERBOSE_MODE
448 
450 // Remove the '//' at the beginning of the line to activate the print function.
451 #define COMMANDERS_PRINT_COMMANDERS
452 
454 #define GPIO2_PREFER_SPEED 1
455 
456 #include <DIO2.h>
457 
459 // Exclusion area
460 //
461 //NO_CANCOMMANDER
462 // CANCommander.cpp
463 // CANCommander.hpp
464 //
465 //NO_DCCCOMMANDER
466 // DccCommander.cpp
467 // DccCommander.hpp
468 // DCC_Decoder.cpp
469 // DCC_Decoder.hpp
470 //
471 //NO_I2CCOMMANDER
472 // I2CCommander.cpp
473 // I2CCommander.hpp
474 //
475 //NO_SERIALCOMMANDER
476 // SerialCommander.hpp
477 // TextInterpreter.cpp
478 // TextInterpreter.hpp
479 //
480 //NO_BUTTONSCOMMANDER
481 // ButtonsCommander.cpp
482 // ButtonsCommander.hpp
483 // ButtonsCommanderButtons.cpp
484 // ButtonsCommanderButtons.hpp
485 // ButtonsCommanderEncoder.cpp
486 // ButtonsCommanderEncoder.hpp
487 // ButtonsCommanderPush.cpp
488 // ButtonsCommanderPush.hpp
489 // ButtonsCommanderSwitch.cpp
490 // ButtonsCommanderSwitch.hpp
491 // ButtonsCommanderPotentiometer.cpp
492 // ButtonsCommanderPotentiometer.hpp
493 //
494 //NO_BUTTONSCOMMANDERENCODER
495 // ButtonsCommanderEncoder.cpp
496 // ButtonsCommanderEncoder.hpp
497 //
498 //NO_BUTTONSCOMMANDERPUSH
499 // ButtonsCommanderPush.cpp
500 // ButtonsCommanderPush.hpp
501 //
502 //NO_BUTTONSCOMMANDERANALOGPUSHES
503 // ButtonsCommanderAnalogPush.cpp
504 // ButtonsCommanderAnalogPush.hpp
505 //
506 //NO_BUTTONSCOMMANDERSWITCH
507 // ButtonsCommanderSwitch.cpp
508 // ButtonsCommanderSwitch.hpp
509 //
510 //NO_BUTTONSCOMMANDERPOTENTIOMETER
511 // ButtonsCommanderPotentiometer.cpp
512 // ButtonsCommanderPotentiometer.hpp
513 //
514 //NO_EVENTsSEQUENCER
515 // EventsSequencer.cpp
516 // EventsSequencer.hpp
517 
518 //#define NO_BUTTONSCOMMANDER
519 //#define NO_BUTTONSCOMMANDERENCODER
520 //#define NO_BUTTONSCOMMANDERPUSH
521 //#define NO_BUTTONSCOMMANDERANALOGPUSHES
522 //#define NO_BUTTONSCOMMANDERSWITCH
523 //#define NO_BUTTONSCOMMANDERPOTENTIOMETER
524 #define NO_CANCOMMANDER
525 #define NO_DCCCOMMANDER
526 #define NO_I2CCOMMANDER
527 //#define NO_SERIALCOMMANDER
528 //#define NO_EVENTSSEQUENCER
529 
530 #ifdef DOXYGEN_SPECIFIC
531  // DO NOT CHANGE THESE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for library documentation !
532 
535  #define NO_BUTTONSCOMMANDER
536 
538  #define NO_BUTTONSCOMMANDERENCODER
539 
541  #define NO_BUTTONSCOMMANDERPUSH
542 
544  #define NO_BUTTONSCOMMANDERANALOGPUSHES
545 
547  #define NO_BUTTONSCOMMANDERSWITCH
548 
550  #define NO_BUTTONSCOMMANDERPOTENTIOMETER
551 
554  #define NO_CANCOMMANDER
555 
557  #define NO_DCCCOMMANDER
558 
560  #define NO_I2CCOMMANDER
561 
563  #define NO_SERIALCOMMANDER
564 
566  #define NO_EVENTSSEQUENCER
567 
568  #undef NO_BUTTONSCOMMANDER
569  #undef NO_BUTTONSCOMMANDERENCODER
570  #undef NO_BUTTONSCOMMANDERPUSH
571  #undef NO_BUTTONSCOMMANDERANALOGPUSHES
572  #undef NO_BUTTONSCOMMANDERSWITCH
573  #undef NO_BUTTONSCOMMANDERPOTENTIOMETER
574  #undef NO_CANCOMMANDER
575  #undef NO_DCCCOMMANDER
576  #undef NO_I2CCOMMANDER
577  #undef NO_SERIALCOMMANDER
578  #undef NO_EVENTSSEQUENCER
579 
583  #define COMMANDERS_DEBUG_MODE
584 
586  #define COMMANDERS_DEBUG_VERBOSE_MODE
587 
592  #define COMMANDERS_PRINT_COMMANDERS
593 #endif
594 
596 
597 #include "Commander.hpp"
598 #include "Commanders.hpp"
599 
600 #ifndef NO_CANCOMMANDER
601 #include "CANCommander.hpp"
602 #endif
603 
604 #ifndef NO_DCCCOMMANDER
605 #include "DccCommander.hpp"
606 #endif
607 
608 #ifndef NO_I2CCOMMANDER
609 #include "I2CCommander.hpp"
610 #endif
611 
612 #ifndef NO_BUTTONSCOMMANDER
613 #include "ButtonsCommander.hpp"
614 #endif
615 
616 #ifndef NO_SERIALCOMMANDER
617 #include "SerialCommander.hpp"
618 #include "TextInterpreter.hpp"
619 #endif
620 
621 #ifndef NO_EVENTSSEQUENCER
622 #include "EventsSequencer.hpp"
623 #endif
624 
625 #endif