I2CDEV_IMPLEMENTATION

Dear all,

I am a newbie of using arduino and I don't know what does the codes below mean used in self balancing robot?

if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE

include "Wire.h"

endif

In that code what I don't understand is the code meaning of "I2CDEV_IMPLEMENTATION " and "I2CDEV_ARDUINO_WIRE".

I would be grateful if anyone knows that code.

Thank you.

These are preprocessor macros that have been defined somewhere (probably a library header file #included above those lines) using #define.

For more information, see:
http://www.cplusplus.com/doc/tutorial/preprocessor/