Accessories
Arduino for motors and lights library.
Accessories.h
Go to the documentation of this file.
1
//-------------------------------------------------------------------
2
#ifndef __accessories_H__
3
#define __accessories_H__
4
//-------------------------------------------------------------------
5
315
// Add a '//' at the beginning of the line to be in
317
// release mode.
318
//#define ACCESSORIES_DEBUG_MODE
319
321
// Verbose mode lets you see all actions done by the
322
// library, but with a real flood of text to console...
323
// Has no effect if ACCESSORIES_DEBUG_MODE is not activated.
324
//#define ACCESSORIES_DEBUG_VERBOSE_MODE
325
327
// The function Accessories::printAccessories()
328
// is very heavy in program memory. So to avoid problems
329
// you can make this function available by uncomment the next line.
330
//#define ACCESSORIES_PRINT_ACCESSORIES
331
333
#define GPIO2_PREFER_SPEED 1
334
335
#include "DIO2.h"
336
338
#define ACTION_STACK_SIZE 5
339
341
// Exclusion area
342
//
343
//NO_GROUP
344
// AccessoryGroup.cpp
345
// AccessoryGroup.hpp
346
//
347
//NO_MOTOR
348
// AccessoryMotor.cpp
349
// AccessoryMotor.hpp
350
// AccessoryMotorOneWay.cpp
351
// AccessoryMotorOneWay.hpp
352
// AccessoryMotorTwoWays.cpp
353
// AccessoryMotorTwoWays.hpp
354
// AFMotor.cpp
355
// AFMotor.hpp
356
//
357
//NO_LIGHT
358
// AccessoryBaseLight.cpp
359
// AccessoryBaseLight.hpp
360
// AccessoryLight.cpp
361
// AccessoryLight.hpp
362
// AccessoryLightMulti.cpp
363
// AccessoryLightMulti.hpp
364
//
365
//NO_MOTOR_LIGHT
366
// PortOnePin.cpp
367
// PortOnePin.hpp
368
// PortTwoPins.cpp
369
// PortTwoPins.hpp
370
// PortTwoPinsEnable.cpp
371
// PortTwoPinsEnable.hpp
372
// PortSpeedDirBrake.cpp
373
// PortSpeedDirBrake.hpp
374
//
375
//NO_SERVO
376
// AccessoryServo.cpp
377
// AccessoryServo.hpp
378
// PortServo.cpp
379
// PortServo.hpp
380
// Servo.cpp
381
// Servo.hpp
382
//
383
//NO_SHIELDL293D
384
// PortShieldL293d.cpp
385
// PortShieldL293d.hpp
386
//
387
//NO_STEPPER
388
// AccessoryStepper.cpp
389
// AccessoryStepper.hpp
390
// DriverStepper.cpp
391
// DriverStepper.hpp
392
// PortStepper.cpp
393
// PortStepper.hpp
394
//
395
396
//#define NO_GROUP
397
//#define NO_MOTOR
398
//#define NO_SERVO
399
//#define NO_STEPPER
400
//#define NO_LIGHT
401
//#define NO_SHIELDL293D
402
403
#ifndef VISUALSTUDIO
404
#define NO_EEPROM
405
#endif
406
407
#ifdef NO_MOTOR
408
#ifdef NO_LIGHT
409
#define NO_MOTOR_LIGHT
410
#endif
411
#ifndef NO_MOTORONEWAY
412
#define NO_MOTORONEWAY
413
#endif
414
#ifndef NO_MOTORTWOWAYS
415
#define NO_MOTORTWOWAYS
416
#endif
417
#endif
418
419
// For Accessories library, L293D is not compatible with Arduino Due for the moment...
420
#ifdef ARDUINO_ARCH_SAM
421
#ifndef NO_SHIELDL293D
422
#define NO_SHIELDL293D
423
#endif
424
#endif
425
427
428
#include "Port.hpp"
429
430
#ifndef NO_MOTOR
431
#include "AccessoryMotorOneWay.hpp"
432
#include "AccessoryMotorTwoWays.hpp"
433
#endif
434
#ifndef NO_SERVO
435
#include "AccessoryServo.hpp"
436
#endif
437
#ifndef NO_STEPPER
438
#include "AccessoryStepper.hpp"
439
#endif
440
#ifndef NO_LIGHT
441
#include "AccessoryLight.hpp"
442
#include "AccessoryLightMulti.hpp"
443
#endif
444
445
#ifndef NO_GROUP
446
#include "AccessoryGroup.hpp"
447
#endif
448
449
#ifndef NO_MOTOR_LIGHT
450
#include "PortOnePin.hpp"
451
#include "PortTwoPins.hpp"
452
#include "PortTwoPinsEnable.hpp"
453
#include "PortSpeedDirBrake.hpp"
454
#endif
455
456
#ifndef NO_SHIELDL293D
457
#include "PortShieldL293d.hpp"
458
#endif
459
460
#ifndef NO_SERVO
461
#include "PortServo.hpp"
462
#endif
463
464
#ifndef NO_STEPPER
465
#include "PortStepper.hpp"
466
#endif
467
468
#include "Accessories.hpp"
469
#endif
470
471
#ifdef DOXYGEN_SPECIFIC
472
// DO NOT CHANGE THESE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
473
477
#define ACCESSORIES_DEBUG_MODE
478
480
#define ACCESSORIES_DEBUG_VERBOSE_MODE
481
486
#define ACCESSORIES_PRINT_ACCESSORIES
487
488
#define NO_EEPROM
489
#endif
src
Accessories.h
Generated on sam. mai 26 2018 11:22:35 for Accessories by
1.2.10