Chronodot library update for 1.0

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Chronodot library update for 1.0

Postby Stephanie » Thu Dec 01, 2011 5: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: 286
Joined: Sat Dec 11, 2010 12:17 am
Location: Canada

Re: Chronodot library update for 1.0

Postby adafruit_support_bill » Thu Dec 01, 2011 8:34 pm

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

Re: Chronodot library update for 1.0

Postby Stephanie » Sun Jan 29, 2012 8: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: 286
Joined: Sat Dec 11, 2010 12:17 am
Location: Canada

Re: Chronodot library update for 1.0

Postby macegr » Mon Jan 30, 2012 4: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: 285
Joined: Fri Apr 04, 2008 3:46 pm

Re: Chronodot library update for 1.0

Postby Stephanie » Mon Jan 30, 2012 8: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: 286
Joined: Sat Dec 11, 2010 12:17 am
Location: Canada

Re: Chronodot library update for 1.0

Postby macegr » Mon Jan 30, 2012 4: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: 285
Joined: Fri Apr 04, 2008 3:46 pm


Return to Arduino

Who is online

Users browsing this forum: tldr and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]