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 
410 // Remove the '//' at the beginning of the line to be in debug mode.
412 //#define COMMANDERS_DEBUG_MODE
413 
415 // Remove the '//' at the beginning of the line to be in verbose debug mode.
416 //#define COMMANDERS_DEBUG_VERBOSE_MODE
417 
419 // Remove the '//' at the beginning of the line to activate the print function.
420 //#define COMMANDERS_PRINT_COMMANDERS
421 
423 #define GPIO2_PREFER_SPEED 1
424 
425 #include <DIO2.h>
426 
428 // Exclusion area
429 //
430 //NO_CANCOMMANDER
431 // CANCommander.cpp
432 // CANCommander.hpp
433 //
434 //NO_DCCCOMMANDER
435 // DccCommander.cpp
436 // DccCommander.hpp
437 // DCC_Decoder.cpp
438 // DCC_Decoder.hpp
439 //
440 //NO_I2CCOMMANDER
441 // I2CCommander.cpp
442 // I2CCommander.hpp
443 //
444 //NO_SERIALCOMMANDER
445 // SerialCommander.hpp
446 // TextInterpreter.cpp
447 // TextInterpreter.hpp
448 //
449 //NO_BUTTONSCOMMANDER
450 // ButtonsCommander.cpp
451 // ButtonsCommander.hpp
452 // ButtonsCommanderButtons.cpp
453 // ButtonsCommanderButtons.hpp
454 // ButtonsCommanderEncoder.cpp
455 // ButtonsCommanderEncoder.hpp
456 // ButtonsCommanderPush.cpp
457 // ButtonsCommanderPush.hpp
458 // ButtonsCommanderSwitch.cpp
459 // ButtonsCommanderSwitch.hpp
460 // ButtonsCommanderPotentiometer.cpp
461 // ButtonsCommanderPotentiometer.hpp
462 //
463 //NO_BUTTONSCOMMANDERENCODER
464 // ButtonsCommanderEncoder.cpp
465 // ButtonsCommanderEncoder.hpp
466 //
467 //NO_BUTTONSCOMMANDERPUSH
468 // ButtonsCommanderPush.cpp
469 // ButtonsCommanderPush.hpp
470 //
471 //NO_BUTTONSCOMMANDERANALOGPUSHES
472 // ButtonsCommanderAnalogPush.cpp
473 // ButtonsCommanderAnalogPush.hpp
474 //
475 //NO_BUTTONSCOMMANDERSWITCH
476 // ButtonsCommanderSwitch.cpp
477 // ButtonsCommanderSwitch.hpp
478 //
479 //NO_BUTTONSCOMMANDERPOTENTIOMETER
480 // ButtonsCommanderPotentiometer.cpp
481 // ButtonsCommanderPotentiometer.hpp
482 //
483 //NO_EVENTsSEQUENCER
484 // EventsSequencer.cpp
485 // EventsSequencer.hpp
486 
487 //#define NO_BUTTONSCOMMANDER
488 //#define NO_BUTTONSCOMMANDERENCODER
489 //#define NO_BUTTONSCOMMANDERPUSH
490 //#define NO_BUTTONSCOMMANDERANALOGPUSHES
491 //#define NO_BUTTONSCOMMANDERSWITCH
492 //#define NO_BUTTONSCOMMANDERPOTENTIOMETER
493 //#define NO_CANCOMMANDER
494 //#define NO_DCCCOMMANDER
495 //#define NO_I2CCOMMANDER
496 //#define NO_SERIALCOMMANDER
497 //#define NO_EVENTSSEQUENCER
498 
500 
501 #include "Commander.hpp"
502 #include "Commanders.hpp"
503 
504 #ifndef NO_CANCOMMANDER
505 #include "CANCommander.hpp"
506 #endif
507 
508 #ifndef NO_DCCCOMMANDER
509 #include "DccCommander.hpp"
510 #endif
511 
512 #ifndef NO_I2CCOMMANDER
513 #include "I2CCommander.hpp"
514 #endif
515 
516 #ifndef NO_BUTTONSCOMMANDER
517 #include "ButtonsCommander.hpp"
518 #endif
519 
520 #ifndef NO_SERIALCOMMANDER
521 #include "SerialCommander.hpp"
522 #include "TextInterpreter.hpp"
523 #endif
524 
525 #ifndef NO_EVENTSSEQUENCER
526 #include "EventsSequencer.hpp"
527 #endif
528 
529 #ifdef DOXYGEN_SPECIFIC
530 // DO NOT CHANGE THESE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
531 
535 #define COMMANDERS_DEBUG_MODE
536 
538 #define COMMANDERS_DEBUG_VERBOSE_MODE
539 
544 #define COMMANDERS_PRINT_COMMANDERS
545 #endif
546 
547 #endif