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