I2C adapter and Teensy 3.1 support

Inquiry and support for Freematics products
Post Reply
actnjackn24p
Posts: 2
Joined: Tue Sep 16, 2014 11:30 am

I2C adapter and Teensy 3.1 support

Post by actnjackn24p »

Have had great success with a few variations of the serial and I2C adapters working with the DUE. Would love to have the I2C adapter working with a Teensy 3.1. I am curious as to the direction to make this happen.

I have fiddled around but still manage to get the following compiler errors:

In file included from rpm_led_i2c.ino:10:0:
C:\Users\Timothy P\Documents\Arduino\libraries\OBD/OBD.h:198:27: error: two or more data types in declaration of 'parameter'
C:\Users\Timothy P\Documents\Arduino\libraries\OBD/OBD.h:198:31: error: expected ')' before ',' token
C:\Users\Timothy P\Documents\Arduino\libraries\OBD/OBD.h:198:33: error: variable or field 'byte' declared void
C:\Users\Timothy P\Documents\Arduino\libraries\OBD/OBD.h:198:33: error: expected ';' at end of member declaration
C:\Users\Timothy P\Documents\Arduino\libraries\OBD/OBD.h:198:38: error: 'h' does not name a type

Thoughts would be greatly appreciated.
stanley
Site Admin
Posts: 1027
Joined: Sat Mar 01, 2014 3:15 am

Re: I2C adapter and Teensy 3.1 support

Post by stanley »

Add this line before inclusion of OBD.h

Code: Select all

#include <stdint.h>
actnjackn24p
Posts: 2
Joined: Tue Sep 16, 2014 11:30 am

Re: I2C adapter and Teensy 3.1 support

Post by actnjackn24p »

Understood. Placed #include <stdint.h> before OBD.h. The complier gave the same errors. Is there something else I could be missing?
Post Reply