Go Down

Topic: issues with codes in new ide (Read 716 times) previous topic - next topic

pejman1998

hi i am working on a binary clock that it's code presumably works with earlier arduino ide but now it gives me a error about 'adjustTime' was not declared in this scope the code is really short but i am impotent to solve this so if you help me i will be appreciate it .
i want to be shameless and ask about if some one knows that how to put seconds in this code although only debugging is essential!

MorganS

Where do you have Time.h installed? It looks like it's not picking up the correct library. Note that with the newest IDE since 1.6.something, libraries can be installed through the library manager although that is not essential. The very old IDE needed libraries saved in the Arduino program folder but now user libraries should be saved in your Arduino sketch area's folder "libraries".

Interestingly, compiling this for Teensy or Due boards, it doesn't complain that Time.h is missing. However compiling for Uno, Nano etc, it gives the correct error message that it can't find Time.h (Since I have no custom library called Time.) Those 32-bit boards must have another Time library buried deeply inside.
"The problem is in the code you didn't post."

vaj4088

 pejman1998 wrote (in part): "...it's code presumably works with earlier arduino ide..."

 pejman1998 wrote (in part): "...but now it gives me a error..."

Please post what IDE version used to work, and what IDE version does not work.

My crystal ball tells me that you can put seconds in your code if you will modify line 42 of the code that you did not post.

To post code and/or error messages:

1) Use CTRL-T in the Arduino IDE to autoformat your code.
2) Paste the autoformatted code between code tags (the </> button)
     so that we can easily see and deal with your code.
3) Paste the complete error message between code tags (the </> button)
     so that we can easily see and deal with your messages.

Before posting again, you should read the three locked topics at the top of the Programming Questions forum, and any links to which these posts point.

If your project involves wiring, please provide a schematic and/or a wiring diagram and/or a photograph of the wiring.

Good Luck!





vaj4088

Sorry, the code was posted but not properly.

pejman1998

when i changed time.h to timelib.h it appears not to have problem and compiles perfectly what do u think?

Delta_G

when i changed time.h to timelib.h it appears not to have problem and compiles perfectly what do u think?

The newest version of the IDE includes the time library that way. 
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

pejman1998

isn't it crazy changing these things without warning? they shouldn't change basics this much

Go Up