#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
unsigned long x = 4294967295-100;
unsigned long sec=0;
unsigned long ss=0;
unsigned long m=0;
unsigned long h=0;
unsigned long d=0;
void setup() {
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
Serial.println(F("SSD1306 allocation failed"));
for(;;); // Don't proceed, loop forever
}
display.setTextColor(1); // Draw white text
display.setTextSize(3);
}
void loop() {
display.clearDisplay();
display.setCursor(0,0);
ss=x;
ss=int((sec/60-int(sec/60))*60);
m=int((sec/3600-int(sec/3600))*60);
h=int((sec/86400-int(sec/86400))*24);
d=int((sec/604800-int(sec/604800))*7);
//# 4y=int((sec/126230400-int(sec/126230400)))
//display.print("d=",d,"sumotuwethfrsa"[d*2:d*2+2],"h="+("0"+str(h))[-2:],"m="+("0"+str(m))[-2:],"s="+("0"+str(ss))[-2:],chr(13),end="");
display.print("d=");
display.print(d);
display.print("h=");
display.print(h);
display.print("m=");
display.print(m);
display.print("s=");
display.print(ss);
display.print(x);
display.display();
x++;
}