Chronodot library update for 1.0
Moderators: adafruit_support_bill, adafruit

Chronodot library update for 1.0

by stephanie on Thu Dec 01, 2011 6:49 pm

For what it's worth, I've just updated my little Chronodot library for Arduino 1.0 compatibility.

I've also set it to maintain backwards compatibility with the older IDEs, just in case folks want to keep using them.

Posted here: http://planetstephanie.net/2011/12/01/c ... ry-update/

File is here: http://planetstephanie.net/blog/wp-cont ... onodot.zip

Someday I will learn how to use Git... If only there were some sort of achievement badge I could earn, to nudge me along... :)

Cheers!

Edited to add: the only advantage this offers over the DS1307 library, is this one lets you access the Chronodot's built-in temperature sensor - you can get tempF and tempC in addition to the date and time info.
User avatar
stephanie
 
Posts: 295
Joined: Sat Dec 11, 2010 1:17 am
Location: Canada

Re: Chronodot library update for 1.0

by adafruit_support_bill on Thu Dec 01, 2011 9:34 pm

Nice work Stephanie! If I only had a badge to give you :D
User avatar
adafruit_support_bill
 
Posts: 31711
Joined: Sat Feb 07, 2009 10:11 am

Re: Chronodot library update for 1.0

by stephanie on Sun Jan 29, 2012 9:48 am

Today is the day I learned how to use github! :)

I have set up a proper repository for the library here:
https://github.com/Stephanie-Maks/Arduino-Chronodot

Cheers!
User avatar
stephanie
 
Posts: 295
Joined: Sat Dec 11, 2010 1:17 am
Location: Canada

Re: Chronodot library update for 1.0

by macegr on Mon Jan 30, 2012 5:07 am

I'm finishing up some extra documentation for the ChronoDot and will definitely be linking your library. I will be posting a big mess o' functions too, so people can see how things are done. But will recommend that everyone just use your library or the Time library if they have the space.
macetech LLC - http://www.macetech.com
User avatar
macegr
 
Posts: 290
Joined: Fri Apr 04, 2008 4:46 pm

Re: Chronodot library update for 1.0

by stephanie on Mon Jan 30, 2012 9:18 am

Wow neat!

I know the DS3231 is capable of a few more features -- like the dual alarms, that I completely ignored when I set that up. I was really just focused on getting the temperature data out of it, but I've been reading the datasheet and thinking of adding more capabilities to the library. No idea when I'd get to it though, it's been on my todo for some time already.

Cheers!
User avatar
stephanie
 
Posts: 295
Joined: Sat Dec 11, 2010 1:17 am
Location: Canada

Re: Chronodot library update for 1.0

by macegr on Mon Jan 30, 2012 5:27 pm

I don't think alarms are useful in the context of the Arduino, since no one ever does sleep-mode stuff with that. It's just as easy to check the time frequently and be able to calculate many different alarm times. Plus you don't have to wire another pin over, you can keep square wave output if you need it, and you don't have to check a register for alarm interrupt flags. I'm not putting in demo code that uses the alarms. It would be useful if you had a very low power application and you needed to wake up the MCU after weeks or months of inactivity. So don't worry about ignoring the alarms for now, I don't think you're missing much :)
macetech LLC - http://www.macetech.com
User avatar
macegr
 
Posts: 290
Joined: Fri Apr 04, 2008 4:46 pm