[Arduino #24] DS3231_weekday_accessible

DS3231 allows you to set and get the datetime from your I2c RTC module. The existing library didn’t allow me to use the weekdays I set.(Or I just didn’t know how to get them.) So I hacked the original a little in order to use the weekday. Check my github page

Example.

DateTime now = RTC.now();
println(now.dayOfWeek());

Enjoy! 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: