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
428
// Remove the '//' at the beginning of the line to be in debug mode.
430
#define COMMANDERS_DEBUG_MODE
431
433
// Remove the '//' at the beginning of the line to be in verbose debug mode.
434
//#define COMMANDERS_DEBUG_VERBOSE_MODE
435
437
// Remove the '//' at the beginning of the line to activate the print function.
438
#define COMMANDERS_PRINT_COMMANDERS
439
441
#define GPIO2_PREFER_SPEED 1
442
443
#include <DIO2.h>
444
446
// Exclusion area
447
//
448
//NO_CANCOMMANDER
449
// CANCommander.cpp
450
// CANCommander.hpp
451
//
452
//NO_DCCCOMMANDER
453
// DccCommander.cpp
454
// DccCommander.hpp
455
// DCC_Decoder.cpp
456
// DCC_Decoder.hpp
457
//
458
//NO_I2CCOMMANDER
459
// I2CCommander.cpp
460
// I2CCommander.hpp
461
//
462
//NO_SERIALCOMMANDER
463
// SerialCommander.hpp
464
// TextInterpreter.cpp
465
// TextInterpreter.hpp
466
//
467
//NO_BUTTONSCOMMANDER
468
// ButtonsCommander.cpp
469
// ButtonsCommander.hpp
470
// ButtonsCommanderButtons.cpp
471
// ButtonsCommanderButtons.hpp
472
// ButtonsCommanderEncoder.cpp
473
// ButtonsCommanderEncoder.hpp
474
// ButtonsCommanderPush.cpp
475
// ButtonsCommanderPush.hpp
476
// ButtonsCommanderSwitch.cpp
477
// ButtonsCommanderSwitch.hpp
478
// ButtonsCommanderPotentiometer.cpp
479
// ButtonsCommanderPotentiometer.hpp
480
//
481
//NO_BUTTONSCOMMANDERENCODER
482
// ButtonsCommanderEncoder.cpp
483
// ButtonsCommanderEncoder.hpp
484
//
485
//NO_BUTTONSCOMMANDERPUSH
486
// ButtonsCommanderPush.cpp
487
// ButtonsCommanderPush.hpp
488
//
489
//NO_BUTTONSCOMMANDERANALOGPUSHES
490
// ButtonsCommanderAnalogPush.cpp
491
// ButtonsCommanderAnalogPush.hpp
492
//
493
//NO_BUTTONSCOMMANDERSWITCH
494
// ButtonsCommanderSwitch.cpp
495
// ButtonsCommanderSwitch.hpp
496
//
497
//NO_BUTTONSCOMMANDERPOTENTIOMETER
498
// ButtonsCommanderPotentiometer.cpp
499
// ButtonsCommanderPotentiometer.hpp
500
//
501
//NO_EVENTsSEQUENCER
502
// EventsSequencer.cpp
503
// EventsSequencer.hpp
504
505
//#define NO_BUTTONSCOMMANDER
506
//#define NO_BUTTONSCOMMANDERENCODER
507
//#define NO_BUTTONSCOMMANDERPUSH
508
//#define NO_BUTTONSCOMMANDERANALOGPUSHES
509
//#define NO_BUTTONSCOMMANDERSWITCH
510
//#define NO_BUTTONSCOMMANDERPOTENTIOMETER
511
#define NO_CANCOMMANDER
512
#define NO_DCCCOMMANDER
513
#define NO_I2CCOMMANDER
514
//#define NO_SERIALCOMMANDER
515
//#define NO_EVENTSSEQUENCER
516
517
#ifdef DOXYGEN_SPECIFIC
518
// DO NOT CHANGE THESE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for library documentation !
519
522
#define NO_BUTTONSCOMMANDER
523
525
#define NO_BUTTONSCOMMANDERENCODER
526
528
#define NO_BUTTONSCOMMANDERPUSH
529
531
#define NO_BUTTONSCOMMANDERANALOGPUSHES
532
534
#define NO_BUTTONSCOMMANDERSWITCH
535
537
#define NO_BUTTONSCOMMANDERPOTENTIOMETER
538
541
#define NO_CANCOMMANDER
542
544
#define NO_DCCCOMMANDER
545
547
#define NO_I2CCOMMANDER
548
550
#define NO_SERIALCOMMANDER
551
553
#define NO_EVENTSSEQUENCER
554
555
#undef NO_BUTTONSCOMMANDER
556
#undef NO_BUTTONSCOMMANDERENCODER
557
#undef NO_BUTTONSCOMMANDERPUSH
558
#undef NO_BUTTONSCOMMANDERANALOGPUSHES
559
#undef NO_BUTTONSCOMMANDERSWITCH
560
#undef NO_BUTTONSCOMMANDERPOTENTIOMETER
561
#undef NO_CANCOMMANDER
562
#undef NO_DCCCOMMANDER
563
#undef NO_I2CCOMMANDER
564
#undef NO_SERIALCOMMANDER
565
#undef NO_EVENTSSEQUENCER
566
570
#define COMMANDERS_DEBUG_MODE
571
573
#define COMMANDERS_DEBUG_VERBOSE_MODE
574
579
#define COMMANDERS_PRINT_COMMANDERS
580
#endif
581
583
584
#include "Commander.hpp"
585
#include "Commanders.hpp"
586
587
#ifndef NO_CANCOMMANDER
588
#include "CANCommander.hpp"
589
#endif
590
591
#ifndef NO_DCCCOMMANDER
592
#include "DccCommander.hpp"
593
#endif
594
595
#ifndef NO_I2CCOMMANDER
596
#include "I2CCommander.hpp"
597
#endif
598
599
#ifndef NO_BUTTONSCOMMANDER
600
#include "ButtonsCommander.hpp"
601
#endif
602
603
#ifndef NO_SERIALCOMMANDER
604
#include "
SerialCommander.hpp
"
605
#include "TextInterpreter.hpp"
606
#endif
607
608
#ifndef NO_EVENTSSEQUENCER
609
#include "EventsSequencer.hpp"
610
#endif
611
612
#endif
SerialCommander.hpp
src
Commanders.h
Generated on ven. juil. 13 2018 22:02:23 for Commanders by
1.2.10