Pixel Clock Code Compilation Error

Arduino is very new, need patience :slight_smile:
Where am I doing wrong.

sketch_nov17e:93: error: 'now' was not declared in this scope

   utc = now();

             ^

sketch_nov17e:95: error: 'hour' was not declared in this scope

   ohour = hour(utc);

                   ^

sketch_nov17e:96: error: 'minute' was not declared in this scope

   ominute = minute(utc);

                       ^

sketch_nov17e:97: error: 'second' was not declared in this scope

   if(osecond != second(utc)) {

                           ^

C:\Documents\Arduino\sketch_nov17e\sketch_nov17e.ino: In function 'void timeSync()':

sketch_nov17e:180: error: 'setTime' was not declared in this scope

   setTime(dt.Hour(),dt.Minute(),dt.Second(),dt.Day(),dt.Month(),dt.Year());

                                                                          ^

C:\Documents\Arduino\sketch_nov17e\sketch_nov17e.ino: In function 'void timeSave()':

sketch_nov17e:197: error: 'now' was not declared in this scope

   utc = now();

             ^

sketch_nov17e:199: error: 'year' was not declared in this scope

   RtcDateTime store = RtcDateTime(year(utc), month(utc), day(utc), hour(utc), minute(utc), second(utc));

                                           ^

sketch_nov17e:199: error: 'month' was not declared in this scope

   RtcDateTime store = RtcDateTime(year(utc), month(utc), day(utc), hour(utc), minute(utc), second(utc));

                                                       ^

sketch_nov17e:199: error: 'day' was not declared in this scope

   RtcDateTime store = RtcDateTime(year(utc), month(utc), day(utc), hour(utc), minute(utc), second(utc));

                                                                 ^

sketch_nov17e:199: error: 'hour' was not declared in this scope

   RtcDateTime store = RtcDateTime(year(utc), month(utc), day(utc), hour(utc), minute(utc), second(utc));

                                                                            ^

sketch_nov17e:199: error: 'minute' was not declared in this scope

   RtcDateTime store = RtcDateTime(year(utc), month(utc), day(utc), hour(utc), minute(utc), second(utc));

                                                                                         ^

sketch_nov17e:199: error: 'second' was not declared in this scope

   RtcDateTime store = RtcDateTime(year(utc), month(utc), day(utc), hour(utc), minute(utc), second(utc));

                                                                                                      ^

C:\Documents\Arduino\sketch_nov17e\sketch_nov17e.ino: In function 'void chkSer()':

sketch_nov17e:242: error: 'setTime' was not declared in this scope

       setTime(iH,iM,iS,id,im,iy);

Where am I doing wrong.

You're not showing us your code.
Again.

Change line 27 from:

#include <Time.h>

to:

#include <TimeLib.h>

If that causes a "file not found" error then you need to update to the latest version of the Time library.

Thank you very much for the wonderful answer.
Compilation successful :slight_smile: