
#include "Main.h"
#include "Hardware_Config.h"
#include "ds1307.h"
#include "Seven_Seg_Symbols.h"
#include <stdio.h>


//connect SDA and SCL to Port1.1 and Port1.0
#define SDA P1_1 
#define SCL P1_0


void main()
{

	//Start the clock
	tByte second;
	tByte FirstDigit;
	P2 = 0x00;
	tByte
	DS1307_startTimer();

	while(1)
	{
		second = DS1307_get(SEC);
		FirstDigit = second % 10;
		P2 = SevenSeg_DisplayNumber(FirstDigit);
	}
}
