http://www.ornekyazilim.com/2018/07/17/arduino-4-digit-7-segment-display-saat-uygulamasi/
#include <DS1302.h>
#include "SevSeg.h"
Time t;
DS1302 rtc(52, 51, 50);
SevSeg sevseg;
void setup()
{
rtc.halt(false);
rtc.writeProtect(false);
rtc.setDOW(FRIDAY);
rtc.setTime(15, 05, 30); //Saati ayarlıyoruz.
rtc.setDate(17,7, 2018); //Tarihi ayarlıyoruz.
byte numDigits = 4;
byte digitPins[] = {9, 10, 11, 12};
byte segmentPins[] = {2, 3, 4, 5, 6, 7, 8, 13};
bool resistorsOnSegments = false;
byte hardwareConfig = COMMON_ANODE;
bool updateWithDelays = false;
bool leadingZeros = false;
sevseg.begin(hardwareConfig, numDigits, digitPins, segmentPins, resistorsOnSegments, updateWithDelays, leadingZeros);
sevseg.setBrightness(90);
Serial.begin(9600);
}
void loop()
{
t = rtc.getTime();
int saat = t.hour*100; //4 haneli olması için saati 100 le çarpıyoruz
int dakika = t.min; //dakikayı direk alıyoruz.
int yazdir = saat+dakika; //direk toplayarak saat ifadesini alıyoruz.
sevseg.setNumber(yazdir,2); //,2 nin anlamı . ifadesini nereye konulacağını belirtmek
sevseg.refreshDisplay(); //displayi yeniliyoruz..
}
https://www.google.com/search?rlz=1.....0.2..0.0.0.......0......gws-wiz.mq7mcdgyQow
https://www.google.com/search?q=ard...XDnVwKHSPcACcQ_AUoA3oECAwQBQ&biw=1366&bih=625
https://www.google.com/search?rlz=1...&ved=0ahUKEwjv_8HDnYLmAhWkQkEAHZ7CCC4Q4dUDCAs
https://www.google.com/search?q=16F...UWEcAKHZb6CdAQ_AUoA3oECAwQBQ&biw=1366&bih=625
https://www.google.com/search?q=pıc16f877+ile+dijital+saat&rlz=1C1NHXL_trTR808TR808&oq=pıc16f877+ile+dijital+saat&aqs=chrome..69i57&sourceid=chrome&ie=UTF-8
https://www.google.com/search?rlz=1...&ved=0ahUKEwj7wdLrnoLmAhWRiFwKHQCWDo8Q4dUDCAs
https://www.google.com/search?q=Ds1...UBZMAKHcK0AxQQ_AUoAHoECAwQCA&biw=1366&bih=625