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