#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "RTClib.h"
#include "Font.h"
#include <Wire.h>

char buffer[3];

RTC_DS1307 rtc;
Adafruit_SSD1306 oled(128, 64);

void setup() {
  oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  oled.clearDisplay();
  oled.setFont(&DSEG7_Modern_Mini_Regular_35);
  
  rtc.begin();
}

void loop() { 
  display();
}

void display(){
  DateTime now = rtc.now();
  
  sprintf(buffer, "%02d", now.minute());
  
  oled.clearDisplay();
  oled.setTextColor(1, 0);
  oled.setCursor(0, 40);
  //oled.setTextSize(2);
  oled.print(now.hour(), DEC);
  oled.print(':');
  oled.print(buffer);
  oled.display();
}
GND5VSDASCLSQWRTCDS1307+