sparkfun / deadon_rtc Goto Github PK
View Code? Open in Web Editor NEWExample code and board files for the DeadOn_RTC
Home Page: https://www.sparkfun.com/products/10160
Example code and board files for the DeadOn_RTC
Home Page: https://www.sparkfun.com/products/10160
By putting the example in a directory named DeadOn_RTC/examples/set_and_read_time/ and naming the ino file to match, you allow a user to git-clone/zip-download the repo and then move/copy/symlink the Libraries/DeadOn_RTC directory into ~/Documents/Arduino/Libraries/ and have the example show up correctly. See: https://www.dropbox.com/s/iw4pnoi1re5ja9v/Screenshot%202014-07-22%2009.34.36.png
(There's also not a library in this project. I'm going to fix that also.)
Does anyone monitor this to assist with an issue?
For some reason, I am not able to get the teensy to properly set time to my ds3234 rtc. I am able to run rtc.autoTime();
but when I try to run rtc.setTime(16, 32, 7, 2, 31, 10, 16);
(after commenting out rtc.autoTime();), I am not getting a response from the teensy and am no longer reading time through the serial port.
When I compile the code and send it the teensy, I get these errors:
C:\Users\user\Documents\Arduino\libraries\SparkFun_DS3234_RTC_Arduino_Library-master\src\SparkFunDS3234RTC.cpp: In member function 'void DS3234::writeToRegister(uint8_t, uint8_t)': C:\Users\user\Documents\Arduino\libraries\SparkFun_DS3234_RTC_Arduino_Library-master\src\SparkFunDS3234RTC.cpp:700:30: warning: invalid conversion from 'uint8_t {aka unsigned char}' to 'DS3234_registers' [-fpermissive] spiWriteByte(address, data); ^ C:\Users\user\Documents\Arduino\libraries\SparkFun_DS3234_RTC_Arduino_Library-master\src\SparkFunDS3234RTC.cpp:648:6: note: initializing argument 1 of 'void DS3234::spiWriteByte(DS3234_registers, uint8_t)' void DS3234::spiWriteByte(DS3234_registers reg, uint8_t value) ^ C:\Users\user\Documents\Arduino\libraries\SparkFun_DS3234_RTC_Arduino_Library-master\src\SparkFunDS3234RTC.cpp: In member function 'uint8_t DS3234::readFromRegister(uint8_t)': C:\Users\cassidy.gonzalez-mor\Documents\Arduino\libraries\SparkFun_DS3234_RTC_Arduino_Library-master\src\SparkFunDS3234RTC.cpp:705:29: warning: invalid conversion from 'uint8_t {aka unsigned char}' to 'DS3234_registers' [-fpermissive] return spiReadByte(address); ^ C:\Users\user\Documents\Arduino\libraries\SparkFun_DS3234_RTC_Arduino_Library-master\src\SparkFunDS3234RTC.cpp:661:9: note: initializing argument 1 of 'uint8_t DS3234::spiReadByte(DS3234_registers)' uint8_t DS3234::spiReadByte(DS3234_registers reg) ^
I am running the code exactly as directed on the sparkfun example program.
Can anyone assist?
I am using arduino ide version 1.8.16
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.