Git Product home page Git Product logo

ds3231-rtc's People

Contributors

hasenradball avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

s-t-a-n

ds3231-rtc's Issues

Cannot Compile - LOT of errors

I used the default File "DS3231_set"

In file included from /tmp/arduino_modified_sketch_199840/DS3231_set.ino:11:0: /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:68:19: error: field '_tm' has incomplete type struct tm _tm; ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int16_t DateTime::getYear() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:42:44: error: '_tm' was not declared in this scope int16_t getYear() const { return _tm.tm_year + 1900; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int8_t DateTime::getMonth() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:43:46: error: '_tm' was not declared in this scope int8_t getMonth() const { return _tm.tm_mon + 1; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int8_t DateTime::getDay() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:44:46: error: '_tm' was not declared in this scope int8_t getDay() const { return _tm.tm_mday; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int8_t DateTime::getHour() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:45:46: error: '_tm' was not declared in this scope int8_t getHour() const { return _tm.tm_hour; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int8_t DateTime::getMinute() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:46:46: error: '_tm' was not declared in this scope int8_t getMinute() const { return _tm.tm_min; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int8_t DateTime::getSecond() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:47:46: error: '_tm' was not declared in this scope int8_t getSecond() const { return _tm.tm_sec; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int8_t DateTime::getWeekDay() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:48:44: error: '_tm' was not declared in this scope int8_t getWeekDay() const { return _tm.tm_wday; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int16_t DateTime::getYearDay() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:49:45: error: '_tm' was not declared in this scope int16_t getYearDay() const { return _tm.tm_yday; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'int16_t DateTime::getDST() const': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:50:46: error: '_tm' was not declared in this scope int16_t getDST() const { return _tm.tm_isdst; } ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: At global scope: /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:74:29: error: 'TwoWire' has not been declared static DateTime now(TwoWire &_Wire = Wire); ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:74:46: error: could not convert 'Wire' from 'USI_TWI' to 'int&' static DateTime now(TwoWire &_Wire = Wire); ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:82:24: error: expected ')' before '&' token DS3231(TwoWire &twowire); ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:84:9: error: 'TwoWire' does not name a type TwoWire &_Wire; ^ In file included from /tmp/arduino_modified_sketch_199840/DS3231_set.ino:11:0: /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h: In member function 'byte DS3231::getRegisterValue()': /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:238:13: error: '_Wire' was not declared in this scope _Wire.requestFrom(CLOCK_ADDRESS, 1); ^ /tmp/arduino_modified_sketch_199840/DS3231_set.ino: In function 'void loop()': DS3231_set:88:35: error: 'date' was not declared in this scope getDateStuff(year, month, date, dOW, hour, minute, second); ^ DS3231_set:88:41: error: 'dOW' was not declared in this scope getDateStuff(year, month, date, dOW, hour, minute, second); ^ DS3231_set:93:27: error: no matching function for call to 'DS3231::setYear(<unresolved overloaded function type>)' myRTC.setYear(year); ^ /tmp/arduino_modified_sketch_199840/DS3231_set.ino:93:27: note: candidate is: In file included from /tmp/arduino_modified_sketch_199840/DS3231_set.ino:11:0: /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:134:14: note: void DS3231::setYear(byte) void setYear(byte year); ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:134:14: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'byte {aka unsigned char}' DS3231_set:94:29: error: no matching function for call to 'DS3231::setMonth(<unresolved overloaded function type>)' myRTC.setMonth(month); ^ /tmp/arduino_modified_sketch_199840/DS3231_set.ino:94:29: note: candidate is: In file included from /tmp/arduino_modified_sketch_199840/DS3231_set.ino:11:0: /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:132:14: note: void DS3231::setMonth(byte) void setMonth(byte month); ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:132:14: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'byte {aka unsigned char}' DS3231_set:97:27: error: no matching function for call to 'DS3231::setHour(<unresolved overloaded function type>)' myRTC.setHour(hour); ^ /tmp/arduino_modified_sketch_199840/DS3231_set.ino:97:27: note: candidate is: In file included from /tmp/arduino_modified_sketch_199840/DS3231_set.ino:11:0: /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:126:14: note: void DS3231::setHour(byte) void setHour(byte hour); ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:126:14: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'byte {aka unsigned char}' DS3231_set:98:31: error: no matching function for call to 'DS3231::setMinute(<unresolved overloaded function type>)' myRTC.setMinute(minute); ^ /tmp/arduino_modified_sketch_199840/DS3231_set.ino:98:31: note: candidate is: In file included from /tmp/arduino_modified_sketch_199840/DS3231_set.ino:11:0: /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:124:14: note: void DS3231::setMinute(byte) void setMinute(byte minute); ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:124:14: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'byte {aka unsigned char}' DS3231_set:99:31: error: no matching function for call to 'DS3231::setSecond(<unresolved overloaded function type>)' myRTC.setSecond(second); ^ /tmp/arduino_modified_sketch_199840/DS3231_set.ino:99:31: note: candidate is: In file included from /tmp/arduino_modified_sketch_199840/DS3231_set.ino:11:0: /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:122:14: note: void DS3231::setSecond(byte) void setSecond(byte second); ^ /home/bastel/Arduino/libraries/DS3231-RTC/src/DS3231-RTC.h:122:14: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'byte {aka unsigned char}' DS3231_set:104:43: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' myRTC.setA1Time(dOW, hour, minute+1, second, 0x0, true, ^ DS3231_set:107:44: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' myRTC.setA2Time(date, hour, minute+2, 0x0, false, false, ^ Bibliothek Wire im Ordner: /home/bastel/.arduino15/packages/digistump/hardware/avr/1.6.7/libraries/Wire (legacy) wird verwendet Bibliothek DS3231-RTC in Version 1.0.0 im Ordner: /home/bastel/Arduino/libraries/DS3231-RTC wird verwendet Bibliothek Time_alt im Ordner: /home/bastel/Arduino/libraries/Time_alt (legacy) wird verwendet exit status 1 'date' was not declared in this scope

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.