Connect with us

Is there anything wrong for Arduino IDE 1307 code example?

Discussion in 'Microcontrollers, Programming and IoT' started by lucy Wyling, Dec 28, 2017.

  1. lucy Wyling

    lucy Wyling

    6
    1
    Dec 28, 2017
    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.
     

    Attached Files:

    • 2.png
      2.png
      File size:
      16.7 KB
      Views:
      94
  2. Harald Kapp

    Harald Kapp Moderator Moderator

    9,364
    1,901
    Nov 17, 2011
    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.
     
  3. sherisengweiyi

    sherisengweiyi

    2
    0
    Dec 28, 2017
    Try to use the following

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

    also try to replace <Time.h> with <TimeLib.h>
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-