#include "I2C.h"
#include "RTC.h"
// KEY LEARNING: 1. Always write simple direct code for your application.
// 2. Always do check the code by taking up and example for cases to ensure
// that your code does not change the state of pin which is not intended
// to change.
// 3. Be specific about the state of pin that you are changing and lookout
// if other pins change state due to the code that you write which is intended
// for some other pin.
#define CLK_HALT 0x80
#define HOURS_12_AM 0x40
#define HOURS_12_PM 0x60
void setup() {
// put your setup code here, to run once:
init_port();
Serial.begin(9600);
oscillator(CLK_HALT);
// twelve_or_twenty4(HOURS_12_PM);
while(1){
date();
delay(2000);
}
}
void loop() {
// put your main code here, to run repeatedly:
}