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 
195 // Add a '//' at the beginning of the line to be in
197 // release mode.
198 //#define ACCESSORIES_DEBUG_MODE
199 
201 // Verbose mode lets you see all actions done by the
202 // library, but with a real flood of text to console...
203 // Has no effect if ACCESSORIES_DEBUG_MODE is not activated.
204 //#define ACCESSORIES_DEBUG_VERBOSE_MODE
205 
207 // The function Accessories::printAccessories()
208 // is very heavy in program memory. So to avoid problems
209 // you can make this function available by uncomment the next line.
210 //#define ACCESSORIES_PRINT_ACCESSORIES
211 
212 #ifdef DOXYGEN_SPECIFIC
213 
216 #define ACCESSORIES_DEBUG_MODE
217 
219 #define ACCESSORIES_DEBUG_VERBOSE_MODE
220 
225 #define ACCESSORIES_PRINT_ACCESSORIES
226 
227 #define NO_EEPROM
228 #endif
229 
231 #define GPIO2_PREFER_SPEED 1
232 
233 #include "DIO2.h"
234 
236 #define ACTION_STACK_SIZE 5
237 
239 // Exclusion area
240 //
241 //NO_GROUP
242 // AccessoryGroup.cpp
243 // AccessoryGroup.hpp
244 //
245 //NO_MOTOR
246 // AccessoryMotor.cpp
247 // AccessoryMotor.hpp
248 // AccessoryMotorOneWay.cpp
249 // AccessoryMotorOneWay.hpp
250 // AccessoryMotorTwoWays.cpp
251 // AccessoryMotorTwoWays.hpp
252 // AFMotor.cpp
253 // AFMotor.hpp
254 //
255 //NO_LIGHT
256 // AccessoryBaseLight.cpp
257 // AccessoryBaseLight.hpp
258 // AccessoryLight.cpp
259 // AccessoryLight.hpp
260 // AccessoryLightMulti.cpp
261 // AccessoryLightMulti.hpp
262 //
263 //NO_MOTOR_LIGHT
264 // PortOnePin.cpp
265 // PortOnePin.hpp
266 // PortTwoPins.cpp
267 // PortTwoPins.hpp
268 // PortTwoPinsEnable.cpp
269 // PortTwoPinsEnable.hpp
270 // PortSpeedDirBrake.cpp
271 // PortSpeedDirBrake.hpp
272 //
273 //NO_SERVO
274 // AccessoryServo.cpp
275 // AccessoryServo.hpp
276 // PortServo.cpp
277 // PortServo.hpp
278 // Servo.cpp
279 // Servo.hpp
280 //
281 //NO_SHIELDL293D
282 // PortShieldL293d.cpp
283 // PortShieldL293d.hpp
284 //
285 //NO_STEPPER
286 // AccessoryStepper.cpp
287 // AccessoryStepper.hpp
288 // DriverStepper.cpp
289 // DriverStepper.hpp
290 // PortStepper.cpp
291 // PortStepper.hpp
292 //
293 
294 //#define NO_GROUP
295 //#define NO_MOTOR
296 //#define NO_SERVO
297 //#define NO_STEPPER
298 //#define NO_LIGHT
299 //#define NO_SHIELDL293D
300 
301 #ifndef VISUALSTUDIO
302 #define NO_EEPROM
303 #endif
304 
305 #ifdef NO_MOTOR
306  #ifdef NO_LIGHT
307  #define NO_MOTOR_LIGHT
308  #endif
309  #ifndef NO_MOTORONEWAY
310  #define NO_MOTORONEWAY
311  #endif
312  #ifndef NO_MOTORTWOWAYS
313  #define NO_MOTORTWOWAYS
314  #endif
315 #endif
316 
317 // For Accessories library, L293D is not compatible with Arduino Due for the moment...
318 #ifdef ARDUINO_ARCH_SAM
319 #ifndef NO_SHIELDL293D
320  #define NO_SHIELDL293D
321 #endif
322 #endif
323 
325 
326 #include "Port.hpp"
327 
328 #ifndef NO_MOTOR
329 #include "AccessoryMotorOneWay.hpp"
330 #include "AccessoryMotorTwoWays.hpp"
331 #endif
332 #ifndef NO_SERVO
333 #include "AccessoryServo.hpp"
334 #endif
335 #ifndef NO_STEPPER
336 #include "AccessoryStepper.hpp"
337 #endif
338 #ifndef NO_LIGHT
339 #include "AccessoryLight.hpp"
340 #include "AccessoryLightMulti.hpp"
341 #endif
342 
343 #ifndef NO_GROUP
344 #include "AccessoryGroup.hpp"
345 #endif
346 
347 #ifndef NO_MOTOR_LIGHT
348 #include "PortOnePin.hpp"
349 #include "PortTwoPins.hpp"
350 #include "PortTwoPinsEnable.hpp"
351 #include "PortSpeedDirBrake.hpp"
352 #endif
353 
354 #ifndef NO_SHIELDL293D
355 #include "PortShieldL293d.hpp"
356 #endif
357 
358 #ifndef NO_SERVO
359 #include "PortServo.hpp"
360 #endif
361 
362 #ifndef NO_STEPPER
363 #include "PortStepper.hpp"
364 #endif
365 
366 #include "Accessories.hpp"
367 #endif