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