#include "U8glib.h"
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);
int a = 0;
char buf[9];
void setup(void) {
u8g.setFont(u8g_font_gdr30r);
}
void loop(void) {
show();
a=a+1;
delay(100);
}
void show(void){
u8g.firstPage();
do {
snprintf(buf, "%d", a);
u8g.drawStr(33, 33, buf);
} while (u8g.nextPage());
}