In file included from C:\Users\ashish\Desktop\study\Trigger_Relay_with_DS3231_RTC\Trigger_Relay_with_DS3231_RTC.ino:2:0:
C:\Users\ashish\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/DS3231.h:27:11: fatal error: hardware/avr/HW_AVR_defines.h: No such file or directory #include "hardware/avr/HW_AVR_defines.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
pls help me to solve tis issue that i am facingUse code tags to format code for the forum
As your topic does not relate directly to the installation or operation of the IDE it has been moved to the Programming Questions category of the forum
How did you end up with that file in the core directory?
3rd party libraries should be in the libraries directory under the sketchbook directory; you can find the sketchbook directory in the preferences (file/preferences).
did you mean to say i have to remove it from this file location which is shown in above screenshot and then i have to save the same ds3231.h and ds3231.cpp in that file location which shown below
pls help me to find its solution can anyone help me by a short video or by screenshot or just compile the code from your side in your pc that i am trying here but not if working if you run this code and worked in your tell me pls
Buddy if you can do any help then pls help can you compile that program that i had in previous thread and if it is working in your system then pls tell me how it works which library you are using and where you place that library (means i want to know path location)
and you last question's answer is i used that 3 party library because in arduino ide, ds3231 library also not working properly thats why i search online and found rinky dink ds3231 now the whole code compiled without any error showing before this library i got in many of the line give error,
now pls if you can try this from your side then pls help
code here shown below
Thank you for trying to use code tags but you did it wrong so I have fixed it for you
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
Compare the program from post #11 with post #13. The program from post #13 compiles on my system, post #11 does not. The reason might be that the parts that you used came from a different example and uses a different library.
If you haven't done so yet, delete the DS3231 files that show in your first screenshot in post #8. The DS3231 in the second screenshot should be the RinkyDink DS3231 library. You can verify by opening one of the two files in e.g. notepad and the beginning will look like
/*
DS3231.cpp - Arduino/chipKit library support for the DS3231 I2C Real-Time Clock
Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.