So I'm making a clock and timer using arduino and i have all the code ready and setup but when i try to compile, it says setTime was not declared in this scope.
This is not the full code as its too long, just the beginning where the error is stated. I can post the full code if needed.
the set time is highlighted in bold.
#include <LiquidCrystal.h>
#include <Time.h>
#include <Wire.h>
int buttonPin2 = 3;
int buttonPin3 = 2;
int buzzerPin = 13;
int tSeconds=10, tMinutes=0, hours=0;
int centiseconds=0, sSeconds=0, sMinutes=0;
int button1Counter = 0;
int button1State = 0;
int lastButton1State = 0;
int button2Counter = 0;
int button2State = 0;
int lastButton2State = 0;
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup()
{
lcd.begin(16, 2);
setTime(17,40,00,19,04,2017);
pinMode(buttonPin1, INPUT_PULLUP);
pinMode(buttonPin2, INPUT_PULLUP);
pinMode(buttonPin3, INPUT_PULLUP);
pinMode(buzzerPin, OUTPUT);
}
exit status 1
'setTime' was not declared in this scope
this is the full error code