
Sketch_dec19a:14: error: 'SD' was not declared in this scopeĬ:\Users\cnagel\AppData\Local\Temp\arduino_modified_sketch_121604\sketch_dec19a.ino: At global scope: Sketch_dec19a:13: error: 'chip_select_pin' was not declared in this scope Sketch_dec19a:12: error: 'lm35_pin' was not declared in this scope Sketch_dec19a:11: error: 'class DS3231' has no member named 'begin' Sketch_dec19a:8: error: no matching function for call to 'DS3231::setDate(int, int, int)'Ĭ:\Users\cnagel\AppData\Local\Temp\arduino_modified_sketch_121604\sketch_dec19a.ino:8:25: note: candidate is:Ĭ:\Users\cnagel\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: void DS3231::setDate(byte)Ĭ:\Users\cnagel\Documents\Arduino\libraries\DS3231/DS3231.h:94:8: note: candidate expects 1 argument, 3 provided Sketch_dec19a:7: error: 'class DS3231' has no member named 'setTime' Sketch_dec19a:6: error: 'WEDNESDAY' was not declared in this scope Sketch_dec19a:6: error: 'class DS3231' has no member named 'setDOW' Sketch_dec19a:5: error: 'class DS3231' has no member named 'begin' Sketch_dec19a:2: error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'Ĭ:\Users\cnagel\AppData\Local\Temp\arduino_modified_sketch_121604\sketch_dec19a.ino:2:21: note: candidates are: WARNING: Category 'Real-time clock' in library DS3231 is not valid. Try again") Īnd got these error messages: Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Uno" Serial.println("error opening your SD card file. Check your pin connections or change your SD card") ĭata_file = SD.open("test.txt", FILE_WRITE) Serial.println("Initialization Successful.
#Rtc setdate code
I tried out this code (from this website): #include
