Hello all,
I'm a brand new user to the forum. I apologize if this is the wrong place to post this, but here goes:
I am trying to build a time-lapse camera slider for my Nikon, using an Arduino Uno and various other hardware, including a stepper, motor driver, LCD screen, touchpad, etc. I am using a sketch written by a guy named David Hartkop, who is graciously helping me along. I have sent him this same request for help, but he sounds like a busy person, and I don't want to take up all his time.
I am working on building the hardware right now, but wanted to try the sketch on the Arduino before I hooked it all up. I am getting error codes when I try compiling and cannot upload this sketch to the board. I have tried different boards and get the same error codes, and have tried uploading a simple LED Blink sketch to the board without any problems. So far, I have only attached the Arduino Uno board to the computer to attempt to upload the sketch. No other hardware has been attached to the board while I try to upload.
Can anyone please help me by looking at this code and telling me where it's going wrong? It may be that I am not including the correct LiquidCrystal_I2C.h library, maybe one that needs updating?
I have attached the TimeLapseRail_v1.0.ino sketch.
I noticed in the software I downloaded for the project, there is no .cpp file with the .h file. Is that necessary, and possibly overlooked by the author?
And here are the error codes I am receiving:
_170802_TimeLapseRail_v1.0:59: error: no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int, int, int, int, int, int, int, int)'
LiquidCrystal_I2C lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);
^
/Users/michaelterlouw/Desktop/TimeLapseRail-master/TimeLapseRail/Software/_170802_TimeLapseRail_v1.0/_170802_TimeLapseRail_v1.0.ino:59:81: note: candidates are:
In file included from /Users/michaelterlouw/Desktop/TimeLapseRail-master/TimeLapseRail/Software/_170802_TimeLapseRail_v1.0/_170802_TimeLapseRail_v1.0.ino:6:0:
/Users/michaelterlouw/Documents/Arduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.h:57:3: note: LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, uint8_t)
LiquidCrystal_I2C(uint8_t lcd_Addr,uint8_t lcd_cols,uint8_t lcd_rows);
^
/Users/michaelterlouw/Documents/Arduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.h:57:3: note: candidate expects 3 arguments, 8 provided
/Users/michaelterlouw/Documents/Arduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.h:55:7: note: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(const LiquidCrystal_I2C&)
class LiquidCrystal_I2C : public Print {
^
/Users/michaelterlouw/Documents/Arduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 8 provided
/Users/michaelterlouw/Documents/Arduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.h:55:7: note: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(LiquidCrystal_I2C&&)
/Users/michaelterlouw/Documents/Arduino/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 8 provided
/Users/michaelterlouw/Desktop/TimeLapseRail-master/TimeLapseRail/Software/_170802_TimeLapseRail_v1.0/_170802_TimeLapseRail_v1.0.ino: In function 'void setup()':
_170802_TimeLapseRail_v1.0:437: error: 'class LiquidCrystal_I2C' has no member named 'setBacklightPin'
lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE); // Switch on the backlight
^
_170802_TimeLapseRail_v1.0:437: error: 'POSITIVE' was not declared in this scope
lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE); // Switch on the backlight
^
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: /Users/michaelterlouw/Documents/Arduino/libraries/LiquidCrystal_I2C
Not used: /Users/michaelterlouw/Documents/Arduino/libraries/jm_LiquidCrystal_I2C
exit status 1
no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int, int, int, int, int, int, int, int)'
Any help is greatly appreciated. I want to make sure this sketch works correctly before spending any more money on hardware.
Thanks for any help anyone can give me.
Mike T
_170802_TimeLapseRail_v1.0.ino (23.5 KB)