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