I purchased an OBD-II Telematics Kit #1 some time ago, and managed to get it working. I'm now trying to modify the code to add a Realtime Clock module for adding timestamps to the log files. For this I am using an Adafruit Data Logging Shield. I'm trying to upload the Unologger code to my Arduino Uno, but I get the following compilation errors. Any help would be appreciated.
Code: Select all
Arduino: 1.6.3 (Windows 8.1), Board: "Arduino Uno"
unologger.ino: In member function 'void COBDLogger::setup()':
unologger.ino:67:36: error: invalid conversion from 'int' to 'OBD_PROTOCOLS' [-fpermissive]
In file included from unologger.ino:9:0:
C:\Users\John\Documents\Arduino\libraries\OBD/OBD.h:109:15: error: initializing argument 1 of 'virtual bool COBD::init(OBD_PROTOCOLS)' [-fpermissive]
virtual bool init(OBD_PROTOCOLS protocol = PROTO_AUTO);
^
C:\Users\John\Documents\Arduino\libraries\OBD/OBD.h: In member function 'void COBDLogger::benchmark()':
C:\Users\John\Documents\Arduino\libraries\OBD/OBD.h:148:15: error: 'virtual byte COBD::receive(char*, int)' is private
virtual byte receive(char* buffer = 0, int timeout = OBD_TIMEOUT_SHORT);
^
unologger.ino:115:17: error: within this context
In file included from unologger.ino:9:0:
C:\Users\John\Documents\Arduino\libraries\OBD/OBD.h:148:15: error: 'virtual byte COBD::receive(char*, int)' is private
virtual byte receive(char* buffer = 0, int timeout = OBD_TIMEOUT_SHORT);
^
unologger.ino:115:28: error: within this context
unologger.ino: In member function 'void COBDLogger::reconnect()':
unologger.ino:305:21: error: 'class LCD_ILI9341' has no member named 'backlight'
unologger.ino:316:13: error: 'class LCD_ILI9341' has no member named 'backlight'
unologger.ino: In member function 'void COBDLogger::initLoggerScreen()':
unologger.ino:395:13: error: 'class LCD_ILI9341' has no member named 'backlight'
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.