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