Page 1 of 1

Source code for I2C model?

Posted: Wed Apr 02, 2014 2:49 pm
by b0rna
Hi,

I've downloaded and compiled the sources for the adapters. However, I cant quiet tell the difference within the source between the two versions. I'm quiet sure that my I2C dongle is version 1. My questions are:

What sort of config flags need to be declared to get the source code to work on the I2C adapter, as it was shipped. Currently, I can load the compiled code to the adapter, however, the adapter is not pushing anything through the I2C, as the external shield shows that no OBD data is detected.

Thank you.

Re: Source code for I2C model?

Posted: Thu Jun 26, 2014 10:54 pm
by stanley
If you are using with Mega Logger sketch, there is model switch defined in the config.h.

If you are writing your own sketch, simply declare this:

Code: Select all

COBDI2C obd;

to use the OBD-II adapter I2C version.