Page 1 of 1

I2C adapter and Teensy 3.1 support

Posted: Tue Sep 16, 2014 11:40 am
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.

Re: I2C adapter and Teensy 3.1 support

Posted: Thu Sep 18, 2014 9:03 pm
by stanley
Add this line before inclusion of OBD.h

Code: Select all

#include <stdint.h>

Re: I2C adapter and Teensy 3.1 support

Posted: Fri Sep 19, 2014 3:13 am
by actnjackn24p
Understood. Placed #include <stdint.h> before OBD.h. The complier gave the same errors. Is there something else I could be missing?