Clock Shield Example
This example shows an application on 1Sheeld's clock shield.
By using this example, you can send an SMS to a friend on his
birthday and update your status on Facebook when the phone's
time reaches a certain time you specify.
To reduce the library compiled size and limit its memory usage, you
can specify which shields you want to include in your sketch by
defining CUSTOM_SETTINGS and the shields respective INCLUDE_ define.
/* Include 1Sheeld library. */
/* Define some variables for the date and time. */
int hour, minute, second, day, month, year;
int relayPin = 13;
/* Start communication. */
/* Start the clock shield. */
/* Always get the date and time. */
hour = Clock.getHours();
minute = Clock.getMinutes();
second = Clock.getSeconds();
day = Clock.getDay();
month = Clock.getMonth();
year = Clock.getYear();
/* If the date is my friends's birthday date send me
SMS at 3 pm that day and post on Facebook. */
if(hour == 18 && minute == 18 && second == 30 && day == 10 && month == 9 && year == 2015)