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