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
253
// Add a '//' at the beginning of the line to be in
255
// release mode.
256
//#define ACCESSORIES_DEBUG_MODE
257
259
// Verbose mode lets you see all actions done by the
260
// library, but with a real flood of text to console...
261
// Has no effect if ACCESSORIES_DEBUG_MODE is not activated.
262
//#define ACCESSORIES_DEBUG_VERBOSE_MODE
263
265
// The function Accessories::printAccessories()
266
// is very heavy in program memory. So to avoid problems
267
// you can make this function available by uncomment the next line.
268
//#define ACCESSORIES_PRINT_ACCESSORIES
269
270
#ifdef DOXYGEN_SPECIFIC
271
274
#define ACCESSORIES_DEBUG_MODE
275
277
#define ACCESSORIES_DEBUG_VERBOSE_MODE
278
283
#define ACCESSORIES_PRINT_ACCESSORIES
284
285
#define NO_EEPROM
286
#endif
287
289
#define GPIO2_PREFER_SPEED 1
290
291
#include "DIO2.h"
292
294
#define ACTION_STACK_SIZE 5
295
297
// Exclusion area
298
//
299
//NO_GROUP
300
// AccessoryGroup.cpp
301
// AccessoryGroup.hpp
302
//
303
//NO_MOTOR
304
// AccessoryMotor.cpp
305
// AccessoryMotor.hpp
306
// AccessoryMotorOneWay.cpp
307
// AccessoryMotorOneWay.hpp
308
// AccessoryMotorTwoWays.cpp
309
// AccessoryMotorTwoWays.hpp
310
// AFMotor.cpp
311
// AFMotor.hpp
312
//
313
//NO_LIGHT
314
// AccessoryBaseLight.cpp
315
// AccessoryBaseLight.hpp
316
// AccessoryLight.cpp
317
// AccessoryLight.hpp
318
// AccessoryLightMulti.cpp
319
// AccessoryLightMulti.hpp
320
//
321
//NO_MOTOR_LIGHT
322
// PortOnePin.cpp
323
// PortOnePin.hpp
324
// PortTwoPins.cpp
325
// PortTwoPins.hpp
326
// PortTwoPinsEnable.cpp
327
// PortTwoPinsEnable.hpp
328
// PortSpeedDirBrake.cpp
329
// PortSpeedDirBrake.hpp
330
//
331
//NO_SERVO
332
// AccessoryServo.cpp
333
// AccessoryServo.hpp
334
// PortServo.cpp
335
// PortServo.hpp
336
// Servo.cpp
337
// Servo.hpp
338
//
339
//NO_SHIELDL293D
340
// PortShieldL293d.cpp
341
// PortShieldL293d.hpp
342
//
343
//NO_STEPPER
344
// AccessoryStepper.cpp
345
// AccessoryStepper.hpp
346
// DriverStepper.cpp
347
// DriverStepper.hpp
348
// PortStepper.cpp
349
// PortStepper.hpp
350
//
351
352
//#define NO_GROUP
353
//#define NO_MOTOR
354
//#define NO_SERVO
355
//#define NO_STEPPER
356
//#define NO_LIGHT
357
//#define NO_SHIELDL293D
358
359
#ifndef VISUALSTUDIO
360
#define NO_EEPROM
361
#endif
362
363
#ifdef NO_MOTOR
364
#ifdef NO_LIGHT
365
#define NO_MOTOR_LIGHT
366
#endif
367
#ifndef NO_MOTORONEWAY
368
#define NO_MOTORONEWAY
369
#endif
370
#ifndef NO_MOTORTWOWAYS
371
#define NO_MOTORTWOWAYS
372
#endif
373
#endif
374
375
// For Accessories library, L293D is not compatible with Arduino Due for the moment...
376
#ifdef ARDUINO_ARCH_SAM
377
#ifndef NO_SHIELDL293D
378
#define NO_SHIELDL293D
379
#endif
380
#endif
381
383
384
#include "Port.hpp"
385
386
#ifndef NO_MOTOR
387
#include "AccessoryMotorOneWay.hpp"
388
#include "AccessoryMotorTwoWays.hpp"
389
#endif
390
#ifndef NO_SERVO
391
#include "AccessoryServo.hpp"
392
#endif
393
#ifndef NO_STEPPER
394
#include "AccessoryStepper.hpp"
395
#endif
396
#ifndef NO_LIGHT
397
#include "AccessoryLight.hpp"
398
#include "AccessoryLightMulti.hpp"
399
#endif
400
401
#ifndef NO_GROUP
402
#include "AccessoryGroup.hpp"
403
#endif
404
405
#ifndef NO_MOTOR_LIGHT
406
#include "PortOnePin.hpp"
407
#include "PortTwoPins.hpp"
408
#include "PortTwoPinsEnable.hpp"
409
#include "PortSpeedDirBrake.hpp"
410
#endif
411
412
#ifndef NO_SHIELDL293D
413
#include "PortShieldL293d.hpp"
414
#endif
415
416
#ifndef NO_SERVO
417
#include "PortServo.hpp"
418
#endif
419
420
#ifndef NO_STEPPER
421
#include "PortStepper.hpp"
422
#endif
423
424
#include "Accessories.hpp"
425
#endif
src
Accessories.h
Generated on mer. oct. 18 2017 17:44:46 for Accessories by
1.2.10