#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "Org_01.h" // Include the custom font header file
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup() {
Serial.begin(9600);
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
Serial.println(F("SSD1306 allocation failed"));
for (;;);
}
// Display initial screen
updateDisplay();
}
void loop() {
// Nothing to do here, as we're displaying static content
}
void updateDisplay() {
display.clearDisplay();
display.setTextColor(SSD1306_WHITE);
display.setFont(&Org_01); // Set custom font
display.setTextSize(2);
display.setCursor(26, 30);
display.println("00:00PM");
display.setTextSize(1);
display.setCursor(30, 40);
display.println("00/00/0000");
display.display();
}