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