Source code for I2C model?

Inquiry and support for Freematics products
Post Reply
b0rna
Posts: 6
Joined: Wed Apr 02, 2014 11:01 am

Source code for I2C model?

Post 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.
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: Source code for I2C model?

Post 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.
Post Reply