I could use some help making an arduino library compatible with the teensy 3.0. I tried just compiling the library I want to use and the arduino library on a bare minimum sketch and got a few errors:
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp: In member function 'void COBD::Query(unsigned char)':
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp:70: error: 'sprintf_P' was not declared in this scope
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp: In member function 'virtual char* COBD::GetResponse(byte, char*)':
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp:130: error: 'strstr_P' was not declared in this scope
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp:145: error: 'strstr_P' was not declared in this scope
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp: In member function 'bool COBD::Init(bool)':
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp:262: error: 'strstr_P' was not declared in this scope
I am using the arduino ide posted on your kickstarter page for teensy 3.0 and it does compile fine for arduino boards. If there is any other info you need please ask.
library as well as example files can be found at: http://sourceforge.net/projects/obdcon/files/arduino-obd-library-20121201.zip/download
also is there any pwm libraries that support shift registers(or vice-versa)? I want to use ShiftPWM, but it seems to be incompatible with teensy as well. ShiftPwm can be found at: http://www.elcojacobs.com/shiftpwm/ if you want an example of what I'm looking for.
Thank you,
Clayton
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp: In member function 'void COBD::Query(unsigned char)':
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp:70: error: 'sprintf_P' was not declared in this scope
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp: In member function 'virtual char* COBD::GetResponse(byte, char*)':
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp:130: error: 'strstr_P' was not declared in this scope
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp:145: error: 'strstr_P' was not declared in this scope
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp: In member function 'bool COBD::Init(bool)':
E:\Clayton\Arduino\arduino-1.0.2\libraries\OBD\OBD.cpp:262: error: 'strstr_P' was not declared in this scope
I am using the arduino ide posted on your kickstarter page for teensy 3.0 and it does compile fine for arduino boards. If there is any other info you need please ask.
library as well as example files can be found at: http://sourceforge.net/projects/obdcon/files/arduino-obd-library-20121201.zip/download
also is there any pwm libraries that support shift registers(or vice-versa)? I want to use ShiftPWM, but it seems to be incompatible with teensy as well. ShiftPwm can be found at: http://www.elcojacobs.com/shiftpwm/ if you want an example of what I'm looking for.
Thank you,
Clayton