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!
Binary_Matrix_Clock_4x4.ino (4.36 KB)
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.
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:
- Use CTRL-T in the Arduino IDE to autoformat your code.
- Paste the autoformatted code between code tags (the </> button)
so that we can easily see and deal with your code.
- 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!
Sorry, the code was posted but not properly.
when i changed time.h to timelib.h it appears not to have problem and compiles perfectly what do u think?
pejman1998:
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.
isn't it crazy changing these things without warning? they shouldn't change basics this much