Hello. I can not find a secure library for DS3231. Because I can not uninstall the wrong library (with errors). I lose my compiler.
Help me? I owe this ...
Address for bibblioteca DS 3231 original?
How to remove a library with errors from the IDE compiler?
pert
February 26, 2017, 12:42pm
2
The Arduino IDE doesn't have any built-in way to remove libraries. You need to do this manually. The easiest way is (assuming the library name is DS3231):
File > Examples > DS3231 > select any example sketch
Sketch > Show sketch folder. This will open a folder something like .../DS3231/examples/DS3231example
Move up three folder levels.
Delete the DS3231 folder. Be very careful when deleting files on your computer. If in doubt back things up first.
If you don't have success finding an alternative library you might consider telling us what the problem is with your current library and we may be able to help you fix it.
Very well.
Your tip was accepted and effective.
Now I have another problem. Can you help me with this? I owe you two.
Problem:
: \ Users \ ascga_ \ Documents \ Arduino \ libraries \ DS3231 / DS3231.h: 17:22: fatal error: WProgram.h: No such file or directory
#include <WProgram.h>
^
Compilation terminated.
pert
February 26, 2017, 2:14pm
4
Open : \ Users \ ascga_ \ Documents \ Arduino \ libraries \ DS3231 / DS3231.h in a text editor
Change line 17 from:
#include <WProgram.h>
to:
#include <Arduino.h>
Save the file.
This time the result was not as expected:
: \ Users \ ascga_ \ Music \ ARDUINO \ Bellicam \ Bellicam.ino: 1: 20: fatal error: DS3231.h: No such file or directory
#include <DS3231.h>
^
Compilation terminated.
Exit status 1
Compiling Error for Arduino / Genuine One Card
/*
DS3231_test.pde
Eric Ayars
4/11
Test/demo of read routines for a DS3231 RTC.
Turn on the serial monitor after loading this to check if things are
working as they should.
*/
#include <DS3231.h>
#include <Wire.h>
After your previous suggestions and even with a simple test program for DS3231 from Mr. Eric Ayars. See the error messages during compilation in detail:
C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware -tools C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\tools-builder -tools C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -built-in-libraries C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\libraries -libraries C:\Users\ascga_\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10801 -build-path C:\Users\ascga_\AppData\Local\Temp\arduino_build_201197 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -verbose C:\Users\ascga_\Music\Memorias\RTC-DS\DS3231\Examples\DS3231_test\DS3231_test.pde
C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\arduino-builder -compile -logger=machine -hardware C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware -tools C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\tools-builder -tools C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -built-in-libraries C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\libraries -libraries C:\Users\ascga_\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10801 -build-path C:\Users\ascga_\AppData\Local\Temp\arduino_build_201197 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -verbose C:\Users\ascga_\Music\Memorias\RTC-DS\DS3231\Examples\DS3231_test\DS3231_test.pde
Using board 'uno' from platform in folder: C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\arduino\avr
Detecting libraries used...
"C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10801 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\arduino\avr\cores\arduino" "-IC:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\arduino\avr\variants\standard" "C:\Users\ascga_\AppData\Local\Temp\arduino_build_201197\sketch\DS3231_test.pde.cpp" -o "nul"
"C:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10801 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\arduino\avr\cores\arduino" "-IC:\Users\ascga_\Music\ARDUINO\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\arduino\avr\variants\standard" "C:\Users\ascga_\AppData\Local\Temp\arduino_build_201197\sketch\DS3231_test.pde.cpp" -o "C:\Users\ascga_\AppData\Local\Temp\arduino_build_201197\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\ascga_\Music\Memorias\RTC-DS\DS3231\Examples\DS3231_test\DS3231_test.pde:13:20: fatal error: DS3231.h: No such file or directory
#include <DS3231.h>
^
compilation terminated.
exit status 1
Erro compilando para a placa Arduino/Genuino Uno
pert
February 27, 2017, 12:34am
7
Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post . Please read it.
Check to be sure : \ Users \ ascga_ \ Documents \ Arduino \ libraries \ DS3231 / DS3231.h exists and that you haven't accidentally renamed it. Keep in mind that Windows Explorer hides extensions by default so if you renamed DS3231.h to DS3231.h.txt it will look like it's named DS3231.h. I recommend you to turn that option off because it's completely idiotic.