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