Maker Pro
Maker Pro

Is there anything wrong for Arduino IDE 1307 code example?

lucy Wyling

Dec 28, 2017
6
Joined
Dec 28, 2017
Messages
6
Recently, I tried to run Arduino IDE example code 1307. But I found a problem here. Is there anything wrong in this code? Because it can not be passed.
 

Attachments

  • 2.png
    2.png
    16.7 KB · Views: 94

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,634
Joined
Nov 17, 2011
Messages
13,634
tmElements_t needs to be defined somewhere. It is not defined in your code and does not seem to be defined in one of the included header files either.
 

sherisengweiyi

Dec 28, 2017
2
Joined
Dec 28, 2017
Messages
2
Try to use the following

#include <TimeLib.h>
#include <DS3232RTC.h>

also try to replace <Time.h> with <TimeLib.h>
 
Top