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
453
#define LIBRARY_VERSION "Commanders V1.62"
454
456
// Remove the '//' at the beginning of the line to be in debug mode.
457
//#define COMMANDERS_DEBUG_MODE
458
460
// Remove the '//' at the beginning of the line to be in verbose debug mode.
461
//#define COMMANDERS_DEBUG_VERBOSE_MODE
462
464
// Remove the '//' at the beginning of the line to activate the print function.
465
//#define COMMANDERS_PRINT_COMMANDERS
466
468
#define GPIO2_PREFER_SPEED 1
469
470
#include <DIO2.h>
471
473
// Exclusion area
474
//
475
//NO_CANCOMMANDER
476
// CANCommander.cpp
477
// CANCommander.hpp
478
//
479
//NO_DCCCOMMANDER
480
// DccCommander.cpp
481
// DccCommander.hpp
482
// DCC_Decoder.cpp
483
// DCC_Decoder.hpp
484
//
485
//NO_I2CCOMMANDER
486
// I2CCommander.cpp
487
// I2CCommander.hpp
488
//
489
//NO_SERIALCOMMANDER
490
// SerialCommander.hpp
491
// TextInterpreter.cpp
492
// TextInterpreter.hpp
493
//
494
//NO_BUTTONSCOMMANDER
495
// ButtonsCommander.cpp
496
// ButtonsCommander.hpp
497
// ButtonsCommanderButtons.cpp
498
// ButtonsCommanderButtons.hpp
499
// ButtonsCommanderEncoder.cpp
500
// ButtonsCommanderEncoder.hpp
501
// ButtonsCommanderPush.cpp
502
// ButtonsCommanderPush.hpp
503
// ButtonsCommanderSwitch.cpp
504
// ButtonsCommanderSwitch.hpp
505
// ButtonsCommanderPotentiometer.cpp
506
// ButtonsCommanderPotentiometer.hpp
507
//
508
//NO_BUTTONSCOMMANDERENCODER
509
// ButtonsCommanderEncoder.cpp
510
// ButtonsCommanderEncoder.hpp
511
//
512
//NO_BUTTONSCOMMANDERPUSH
513
// ButtonsCommanderPush.cpp
514
// ButtonsCommanderPush.hpp
515
//
516
//NO_BUTTONSCOMMANDERANALOGPUSHES
517
// ButtonsCommanderAnalogPush.cpp
518
// ButtonsCommanderAnalogPush.hpp
519
//
520
//NO_BUTTONSCOMMANDERSWITCH
521
// ButtonsCommanderSwitch.cpp
522
// ButtonsCommanderSwitch.hpp
523
//
524
//NO_BUTTONSCOMMANDERPOTENTIOMETER
525
// ButtonsCommanderPotentiometer.cpp
526
// ButtonsCommanderPotentiometer.hpp
527
//
528
//NO_EVENTsSEQUENCER
529
// EventsSequencer.cpp
530
// EventsSequencer.hpp
531
532
//#define NO_BUTTONSCOMMANDER
533
//#define NO_BUTTONSCOMMANDERENCODER
534
//#define NO_BUTTONSCOMMANDERPUSH
535
//#define NO_BUTTONSCOMMANDERANALOGPUSHES
536
//#define NO_BUTTONSCOMMANDERSWITCH
537
//#define NO_BUTTONSCOMMANDERPOTENTIOMETER
538
#define NO_CANCOMMANDER
539
#define NO_DCCCOMMANDER
540
#define NO_I2CCOMMANDER
541
#define NO_SERIALCOMMANDER
542
//#define NO_EVENTSSEQUENCER
543
544
#ifdef DOXYGEN_SPECIFIC
545
// DO NOT CHANGE THESE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for library documentation !
546
549
#define NO_BUTTONSCOMMANDER
550
552
#define NO_BUTTONSCOMMANDERENCODER
553
555
#define NO_BUTTONSCOMMANDERPUSH
556
558
#define NO_BUTTONSCOMMANDERANALOGPUSHES
559
561
#define NO_BUTTONSCOMMANDERSWITCH
562
564
#define NO_BUTTONSCOMMANDERPOTENTIOMETER
565
568
#define NO_CANCOMMANDER
569
571
#define NO_DCCCOMMANDER
572
574
#define NO_I2CCOMMANDER
575
577
#define NO_SERIALCOMMANDER
578
580
#define NO_EVENTSSEQUENCER
581
582
#undef NO_BUTTONSCOMMANDER
583
#undef NO_BUTTONSCOMMANDERENCODER
584
#undef NO_BUTTONSCOMMANDERPUSH
585
#undef NO_BUTTONSCOMMANDERANALOGPUSHES
586
#undef NO_BUTTONSCOMMANDERSWITCH
587
#undef NO_BUTTONSCOMMANDERPOTENTIOMETER
588
#undef NO_CANCOMMANDER
589
#undef NO_DCCCOMMANDER
590
#undef NO_I2CCOMMANDER
591
#undef NO_SERIALCOMMANDER
592
#undef NO_EVENTSSEQUENCER
593
597
#define COMMANDERS_DEBUG_MODE
598
600
#define COMMANDERS_DEBUG_VERBOSE_MODE
601
606
#define COMMANDERS_PRINT_COMMANDERS
607
#endif
608
610
611
#include "Commander.hpp"
612
#include "Commanders.hpp"
613
614
#ifndef NO_CANCOMMANDER
615
#include "CANCommander.hpp"
616
#endif
617
618
#ifndef NO_DCCCOMMANDER
619
#include "DccCommander.hpp"
620
#endif
621
622
#ifndef NO_I2CCOMMANDER
623
#include "I2CCommander.hpp"
624
#endif
625
626
#ifndef NO_BUTTONSCOMMANDER
627
#include "ButtonsCommander.hpp"
628
#endif
629
630
#ifndef NO_SERIALCOMMANDER
631
#include "
SerialCommander.hpp
"
632
#include "TextInterpreter.hpp"
633
#endif
634
635
#ifndef NO_EVENTSSEQUENCER
636
#include "EventsSequencer.hpp"
637
#endif
638
639
#endif
SerialCommander.hpp
src
Commanders.h
Generated on jeu. nov. 22 2018 18:52:30 for Commanders by
1.2.10